Top ".net" questions

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

Found conflicts between different versions of the same dependent assembly that could not be resolved

When I clean and then build my solution that has several projects, the output window reports that the build succeeded. …

.net visual-studio msbuild visual-studio-express
Entity Framework vs LINQ to SQL

Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity …

.net entity-framework linq-to-sql
Set object property using reflection

Is there a way in C# where I can use reflection to set an object property? Ex: MyObject obj = new …

c# .net reflection properties
Getting file names without extensions

When getting file names in a certain folder: DirectoryInfo di = new DirectoryInfo(currentDirName); FileInfo[] smFiles = di.GetFiles("*.txt"); foreach (FileInfo …

c# .net
How to use LINQ to select object with minimum or maximum property value

I have a Person object with a Nullable DateOfBirth property. Is there a way to use LINQ to query a …

c# .net linq
How do I use reflection to call a generic method?

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead …

c# .net generics reflection
What's the @ in front of a string in C#?

This is a .NET question for C# (or possibly VB.net), but I am trying to figure out what's the …

c# .net string
C# Convert string from UTF-8 to ISO-8859-1 (Latin1) H

I have googled on this topic and I have looked at every answer, but I still don't get it. Basically …

c# .net encoding utf-8 iso-8859-1
How to get first object out from List<Object> using Linq

I have below code in c# 4.0. //Dictionary object with Key as string and Value as List of Component type object …

c# .net list linq c#-4.0
How do I split a string by a multi-character delimiter in C#?

What if I want to split a string using a delimiter that is a word? For example, This is a …

c# .net string