Top ".net" questions

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

Entity Framework and Connection Pooling

I've recently started to use the Entity Framework 4.0 in my .NET 4.0 application and am curious about a few things relating …

.net database entity-framework ado.net connection-pooling
Capture the screen shot using .NET

Possible Duplicate: How May I Capture the Screen in a Bitmap? I need to make an application that captures a …

c# .net screenshot
How change List<T> data to IQueryable<T> data

Possible Duplicate: IList<T> to IQueryable<T> I have a List data, but I want a …

.net linq
How to return value from Action()?

In regards to the answer for this question Passing DataContext into Action(), how do I return a value from action(…

c# .net linq
Using PropertyInfo to find out the property type

I want to dynamically parse an object tree to do some custom validation. The validation is not important as such, …

c# .net reflection
How should I set the default proxy to use default credentials?

The following code works for me: var webProxy = WebProxy.GetDefaultProxy(); webProxy.UseDefaultCredentials = true; WebRequest.DefaultWebProxy = webProxy; Unfortunately, WebProxy.GetDefaultProxy() is …

.net proxy
How to Get XML Node from XDocument

How to Get an XML Element from XDocument using LINQ ? Suppose I have an XDocument Named XMLDoc which is shown …

c# .net linq linq-to-xml
Json.NET serialize object with root name

In my web app I'm using Newtonsoft.Json and I have following object [Newtonsoft.Json.JsonObject(Title = "MyCar")] public class …

c# asp.net .net json json.net
Exception.Message vs Exception.ToString()

I have code that is logging Exception.Message. However, I read an article which states that it's better to use …

c# .net exception exception-handling
Windows Application has stopped working :: Event Name CLR20r3

I developed an applicatin using Visual Studio.Net 2008 Team System with Infragistics Net Advantage Tools 2010.3 and made a Setup Exe …

.net vb.net invalidoperationexception