Top ".net" questions

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

Easiest way to compare arrays in C#

In Java, Arrays.equals() allows to easily compare the content of two basic arrays (overloads are available for all the …

c# .net arrays compare
C# : Out of Memory exception

Today my application threw an OutOfMemoryException. To me this was always almost impossible since I have 4GB RAM and a …

c# .net out-of-memory
Getting current directory in .NET web application

So I have a web project, and I'm trying to get the root directory of the website using the c# …

c# asp.net .net directory filepath
How to bind an enum to a combobox control in WPF?

I am trying to find a simple example where the enums are shown as is. All examples I have seen …

c# .net wpf xaml data-binding
Check if instance is of a type

Using this to check if c is an instance of TForm. c.GetType().Name.CompareTo("TForm") == 0 Is there a more …

c# .net
Could not find any resources appropriate for the specified culture or the neutral culture

I have two ASP.NET Web projects (ProjectA and ProjectB). When class in ProjectA is instantiating a class of ProjectB …

.net asp.net embedded-resource resourcemanager
Convert file path to a file URI?

Does the .NET Framework have any methods for converting a path (e.g. "C:\whatever.txt") into a file URI (…

c# .net path uri
A reference to the dll could not be added

When I add a .dll file as a reference in C# application it shows an error : A reference to the "....…

.net wcf reference
Selecting a row in DataGridView programmatically

How can I select a particular range of rows in a DataGridView programmatically at runtime?

c# .net winforms datagridview
Is there an easy way to return a string repeated X number of times?

I'm trying to insert a certain number of indentations before a string based on an items depth and I'm wondering …

c# .net