Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How to loop through all the properties of a class?

I have a class. Public Class Foo Private _Name As String Public Property Name() As String Get Return _Name End …

.net vb.net class reflection properties
C# Interfaces. Implicit implementation versus Explicit implementation

What are the differences in implementing interfaces implicitly and explicitly in C#? When should you use implicit and when should …

c# .net interface
What is a predicate in c#?

I am very new to using predicates and just learned how to write: Predicate<int> pre = delegate(int …

c# .net vb.net predicate
Best way to randomize an array with .NET

What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd …

c# .net algorithm sorting random
How to check whether an object has certain method/property?

Using dynamic pattern perhaps? You can call any method/property using the dynamic keyword, right? How to check whether the …

c# .net methods reflection properties
A certificate chain could not be built to a trusted root authority

During the installation of .NET Framework 4.6.2, I got an error: .NET Framework installation failed: -2146762486. A certificate chain could not …

.net certificate windows-7-embedded
.Net HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returned

I am in a situation where when I get an HTTP 400 code from the server, it is a completely legal …

.net httpwebrequest
Displaying tooltip on mouse hover of a text

I want to display a tooltip when the mouse hovers over a link in my custom rich edit control. Consider …

c# .net winforms tooltip richtextbox
Lists: Count vs Count()

Given a list, which method is preferred to determine the number of elements inside? var myList = new List<string&…

c# .net list linq count