Let's do a small experiment,
Step 1: Write a small program with following contents,
namespace MainMethodTester
{
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Main Method Tester");
}
}
}
Step 2: Build the solution.
Step 3: Open .Net Reflector program (I assume you have the program or otherwise,
.Net Reflector[
^]) and drag and drop the builded exe file(from the debug folder) in side the .Net Reflector program.
Step 4: Then Open the Main Method from the .Net Reflector window and you will see following code for the Main method,
private static void Main(string[] args)
{
Console.WriteLine("Main Method Tester");
}
in where Main is private BY DEFAULT.
Hope it helps :)