Top ".net" questions

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

where is gacutil.exe?

I am using Windows 7 Enterprise 32 bit. I have used Windows command line, and also used VSTS 2008 command line, but when …

.net gacutil
The model backing the <Database> context has changed since the database was created

The error message : "The model backing the 'AddressBook' context has changed since the database was created. Either manually delete/update …

.net entity-framework-4 code-first
Enum "Inheritance"

I have an enum in a low level namespace. I'd like to provide a class or enum in a mid …

c# .net enums
Asynchronously wait for Task<T> to complete with timeout

I want to wait for a Task<T> to complete with some special rules: If it hasn't completed …

c# .net task-parallel-library
Best way to compare two complex objects

I have two complex objects like Object1 and Object2. They have around 5 levels of child objects. I need the fastest …

c# .net
XmlSerializer - There was an error reflecting type

Using C# .NET 2.0, I have a composite data class that does have the [Serializable] attribute on it. I am creating …

c# .net xml serialization .net-2.0
Protect .NET code from reverse engineering?

Obfuscation is one way, but it can't protect from breaking the piracy protection security of the application. How do I …

c# .net obfuscation reverse-engineering
In C#, should I use string.Empty or String.Empty or "" to intitialize a string?

In C#, I want to initialize a string value with an empty string. How should I do this? What is …

c# .net string initialization
Can't find how to use HttpContent

I am trying to use HttpContent: HttpContent myContent = HttpContent.Create(SOME_JSON); ...but I am not having any luck finding …

c# asp.net .net dll
foreach vs someList.ForEach(){}

There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use …

c# .net generics loops enumeration