The Main Function : Main : Language Basics C# Examples


C# Examples » Language Basics » Main »

 

The Main Function





All C# applications begin execution by calling Main( ).




    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("Hello,  Universe!");
        }
}
    
   
  
   



Output

Hello, Universe!


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Main