Get Computer Name in C# without referencing Microsoft.VisualBasic.dll

.net, c#

Solution

Use `System.Environment.MachineName`.

Problem

Is there any way, other than referencing the Microsoft.VisualBasic.dll (such as as below in .NET 3) to retrieve to Computer Name ``` new Microsoft.VisualBasic.Devices.ServerComputer().Name ```

Original source

Related problems