Every console app starts with Main

image_pdfimage_print

   

/*
Learning C# 
by Jesse Liberty

Publisher: O'Reilly 
ISBN: 0596003765
*/
 namespace NotePad
 {
    public class HelloWorld
    {
       // every console app starts with Main
       static void Main()
       {
          System.Console.WriteLine("Hello world!");
       }
    }
 }