A C# program begins with a call to Main() : Intrduction : Language Basics C# Examples


C# Examples » Language Basics » Intrduction »

 

A C# program begins with a call to Main()





This is a simple C# program.
Call this program Example.cs.




    
using  System;  
  
class  MainClass  {  
      
    public  static  void  Main()  {  
        Console.WriteLine("A  simple  C#  program.");  
    }  
}
    
   
  
   



Output

A simple C# program.


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Intrduction