Accessing Environment Settings : Environment : Development C# Examples


C# Examples » Development » Environment »

 

Accessing Environment Settings









    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("Machine  Name:  {0}",  Environment.MachineName);
                Console.WriteLine("Version:  {0}",  Environment.Version);
                
        }
}
    
   
  
   



Output

Machine Name: navioo
Version: 2.0.50727.42


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Environment