Top ".net" questions

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

When using a Settings.settings file in .NET, where is the config actually stored?

When using a Settings.settings file in .NET, where is the config actually stored? I want to delete the saved …

c# .net settings
What's the strangest corner case you've seen in C# or .NET?

I collect a few corner cases and brain teasers and would always like to hear more. The page only really …

c# .net
When using Trusted_Connection=true and SQL Server authentication, will this affect performance?

If a connection string specifies Trusted_Connection=true with SQL Server authentication mode, will performance of my web application be …

c# .net asp.net sql-server-2005 ado.net
Does List<T> guarantee insertion order?

Say I have 3 strings in a List (e.g. "1","2","3"). Then I want to reorder them to place "2" in position 1 (e.…

c# .net collections
ASP.NET MVC Razor render without encoding

Razor encodes string by default. Is there any special syntax for rendering without encoding?

c# .net asp.net asp.net-mvc razor
Is there a C# case insensitive equals operator?

I know that the following is case sensitive: if (StringA == StringB) { So is there an operator which will compare two …

c# .net string operators case-insensitive
What is Func, how and when is it used

What is Func<> and what is it used for?

c# .net delegates
Inline list initialization in VB.NET

Possible Duplicate: Collection initialization syntax in Visual Basic 2008? How is the following C# code translated to VB.NET? var theVar = …

.net vb.net
Synchronously waiting for an async operation, and why does Wait() freeze the program here

Preface: I'm looking for an explanation, not just a solution. I already know the solution. Despite having spent several days …

c# .net task-parallel-library windows-store-apps async-await
DateTime to javascript date

From another answer on Stackoverflow is a conversion from Javascript date to .net DateTime: long msSinceEpoch = 1260402952906; // Value from Date.getTime() …

c# .net javascript