How do I get the current username in .NET using C#?
18 s
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;