Top ".net" questions

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

Remove element of a regular array

I have an array of Foo objects. How do I remove the second element of the array? I need something …

c# .net arrays
Declare a const array

Is it possible to write something similar to the following? public const string[] Titles = { "German", "Spanish", "Corrects", "Wrongs" };

c# .net arrays constants readonly
Read connection string from web.config

How can I read a connection string from a web.config file into a public class contained within a class …

c# .net asp.net web-config connection-string
Getter and Setter declaration in .NET

I was wondering what were the differences between those declaration of getters and setters and if there is a preferred …

c# .net visual-studio-2010
Embedding DLLs in a compiled executable

Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file …

c# .net dll merge linker
Linq style "For Each"

Is there any Linq style syntax for "For each" operations? For instance, add values based on one collection to another, …

c# .net linq foreach
Can you call Directory.GetFiles() with multiple filters?

I am trying to use the Directory.GetFiles() method to retrieve a list of files of multiple types, such as …

c# filesystems .net
Best way to repeat a character in C#

What it's the best way to generate a string of \t's in C# I am learning C# and experimenting with …

c# .net string
Merge two (or more) lists into one, in C# .NET

Is it possible to convert two or more lists into one single list, in .NET using C#? For example, public …

c# .net list
How to do SQL Like % in Linq?

I have a procedure in SQL that I am trying to turn into Linq: SELECT O.Id, O.Name as …

.net linq tsql linq-to-entities sql-like