Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Main method - why with STATIC ? in C#

Why the main method is declared as static ?

  1. static void Main(string[] args)
  2. {
  3.  
  4. }


The main method is declared with Static keyword.
Since the main method is the parent method and starting point of an application, it should be executed without creating an object for it. So, C# automatically puts static keyword in the program.