Top ".net" questions

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

What's the difference between ViewData and ViewBag?

I saw the ViewBag in MVC 3. How's that different than ViewData in MVC 2?

.net asp.net-mvc-3 difference viewbag viewdata
How do I get the first element from an IEnumerable<T> in .net?

I often want to grab the first element of an IEnumerable<T> in .net, and I haven't found …

c# .net
How can I make a .NET Windows Forms application that only runs in the System Tray?

What do I need to do to make a Windows Forms application run in the System Tray? Not an application …

c# .net winforms system-tray
Send JSON via POST in C# and Receive the JSON returned?

This is my first time ever using JSON as well as System.Net and the WebRequest in any of my …

c# .net json httpwebrequest json.net
How to run regasm.exe from command line other than Visual Studio command prompt?

I want to run regasm.exe from cmd. which is available in c:\windows\Microsoft.net\framework\2.057 I do like …

.net c++ visual-c++ command-line operating-system
Priority queue in .Net

I am looking for a .NET implementation of a priority queue or heap data structure Priority queues are data structures …

c# .net data-structures heap priority-queue
LINQ - Left Join, Group By, and Count

Let's say I have this SQL: SELECT p.ParentId, COUNT(c.ChildId) FROM ParentTable p LEFT OUTER JOIN ChildTable c …

c# .net linq linq-to-sql
How to make a window always stay on top in .Net?

I have a C# winforms app that runs a macro in another program. The other program will continually pop up …

c# .net winforms
Reading PDF documents in .Net

Is there an open source library that will help me with reading/parsing PDF documents in .Net/C#?

c# .net pdf
The thread has exited with code 0 (0x0) with no unhandled exception

While debugging my C# application I have noticed a large amount occurrences of the following sentence: The thread -- has …

c# .net debugging