Top ".net" questions

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

Do you need to dispose of objects and set them to null?

Do you need to dispose of objects and set them to null, or will the garbage collector clean them up …

c# .net garbage-collection dispose
How do I start a process from C#?

How do I start a process, such as launching a URL when the user clicks a button?

c# .net windows process process.start
How to provide user name and password when connecting to a network share

When connecting to a network share for which the current user (in my case, a network enabled service user) has …

c# .net winapi networking passwords
Task vs Thread differences

I'm new to parallel programming. There are two classes available in .NET: Task and Thread. So, my questions are: What …

c# .net multithreading task
How can I convert comma separated string into a List<int>

string tags = "9,3,12,43,2" List<int> TagIds = tags.Split(','); This doesn't work cause the split method returns a …

c# .net string list
Uninstalling an MSI file from the command line without using msiexec

msiexec is command prompt software that installs an MSI program. But I have found that you can install an MSI …

.net command-line installation windows-installer
EntityType has no key defined error

Controller: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MvcApplication1.Models; …

c# .net entity-framework
Getting full URL of action in ASP.NET MVC

Is there a built-in way of getting the full URL of an action? I am looking for something like GetFullUrl("…

c# .net asp.net-mvc url-routing
Reminder - \r\n or \n\r?

I just can't remember those. So, what is the right way to properly terminate old fashioned ASCII lines?

.net windows ascii
LINQ Using Max() to select a single row

I'm using LINQ on an IQueryable returned from NHibernate and I need to select the row with the maximum value(…

c# .net linq