Top ".net" questions

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

No ConcurrentList<T> in .Net 4.0?

I was thrilled to see the new System.Collections.Concurrent namespace in .Net 4.0, quite nice! I've seen ConcurrentDictionary, ConcurrentQueue, ConcurrentStack, …

c# .net parallel-processing task-parallel-library
WPF Data Binding and Validation Rules Best Practices

I have a very simple WPF application in which I am using data binding to allow editing of some custom …

.net wpf data-binding validation
No output to console from a WPF application?

I'm using Console.WriteLine() from a very simple WPF test application, but when I execute the application from the command …

c# .net wpf console
How to concatenate two IEnumerable<T> into a new IEnumerable<T>?

I have two instances of IEnumerable<T> (with the same T). I want a new instance of IEnumerable&…

c# .net ienumerable concatenation
How do I get the XML SOAP request of an WCF Web service request?

I'm calling this web service within code and I would like to see the XML, but I can't find a …

c# .net xml wcf soap
Running MSBuild fails to read SDKToolsPath

Howdy, I'm having a bit of an issue runnning a NAnt script that used to properly build my .Net 2.0 based …

.net msbuild
Create normal zip file programmatically

I have seen many tutorials on how to compress a single file in c#. But I need to be able …

c# .net winforms compression zip
What is the App_Data folder used for in Visual Studio?

When creating a new ASP.NET application in Visual Studio, a couple of files and folders are created automatically. One …

asp.net .net visual-studio security app-data
How do I obtain a list of all schemas in a Sql Server database

I want to retrieve a list of all schemas in a given Sql Server database. Using the ADO.NET schema …

c# .net sql-server ado.net
Implementing IDisposable correctly

In my classes I implement IDisposable as follows: public class User : IDisposable { public int id { get; protected set; } public string …

c# .net memory-management memory-leaks garbage-collection