Top ".net" questions

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

C# Create New T()

You can see what I'm trying (but failing) to do with the following code: protected T GetObject() { return new T(); } …

c# .net generics c#-4.0 .net-4.0
What is the 'dynamic' type in C# 4.0 used for?

C# 4.0 introduced a new type called 'dynamic'. It all sounds good, but what would a programmer use it for? Is …

c# .net dynamic c#-4.0
Which .NET Dependency Injection frameworks are worth looking into?

Which C#/.NET Dependency Injection frameworks are worth looking into? And what can you say about their complexity and speed.

c# .net dependency-injection inversion-of-control
Check for column name in a SqlDataReader object

How do I check to see if a column exists in a SqlDataReader object? In my data access layer, I …

c# .net sqldatareader
What is the purpose of nameof?

Version 6.0 got a new feature of nameof, but I can't understand the purpose of it, as it just takes the …

c# .net c#-6.0 nameof
WCF service startup error "This collection already contains an address with scheme http"

I built a web application containing a WCF service contract and a Silverlight control which makes calls to that WCF …

.net wcf
Instantly detect client disconnection from server socket

How can I detect that a client has disconnected from my server? I have the following code in my AcceptCallBack …

.net c# sockets tcp connection
Maximum value of maxRequestLength?

If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength?

.net iis-7 .net-4.0 maxrequestlength
What difference does .AsNoTracking() make?

I have a question regarding the .AsNoTracking() extension, as this is all quite new and quite confusing. I'm using a …

c# .net entity-framework entity-framework-4.3
What are the benefits of using C# vs F# or F# vs C#?

I work for a tech company that does more prototyping than product shipment. I just got asked what's the difference …

c# .net f#