Top ".net" questions

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

How to make String.Contains case insensitive?

How can I make the following case insensitive? myString1.Contains("AbC")

c# .net vb.net string case-insensitive
How to stretch in width a WPF user control to its window?

I have a Window with my user control and I would like to make usercontrol width equals window width. How …

c# .net wpf xaml wpf-controls
"Items collection must be empty before using ItemsSource."

I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old …

.net wpf vb.net entity-framework binding
How to compare types

Quick question: how to compare a Type type (pun not intended) with another type in C#? I mean, I've a …

c# .net
How do I get a human-readable file size in bytes abbreviation using .NET?

How do I get a human-readable file size in bytes abbreviation using .NET? Example: Take input 7,326,629 and display 6.98 MB

c# .net vb.net
System.Net.WebException: The remote name could not be resolved:

I am testing an endpoint that I am experiencing some issues with. I am simply using HttpClient in a loop …

c# .net system.net.webexception
Which method performs better: .Any() vs .Count() > 0?

in the System.Linq namespace, we can now extend our IEnumerable's to have the Any() and Count() extension methods. I …

.net linq performance .net-3.5 extension-methods
.NET data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary -- Speed, memory, and when to use each?

.NET has a lot of complex data structures. Unfortunately, some of them are quite similar, and I'm not always sure …

c# .net vb.net arrays data-structures
Remove the title bar in Windows Forms

How can I remove the blue border that's on top of the Window Form? (I don't know the name of …

c# .net winforms
ExecuteReader requires an open and available Connection. The connection's current state is Connecting

When attempting to connect to MSSQL database via ASP.NET online, I will get the following when two or more …

c# .net sql-server ado.net database-connection