October 07, 2007

Application Entry point in C#.Net 2005

In C#.net 2005 program.cs file contain the application entry method.
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}

1.)We can declare only one Main() method.
2.)Main method can't be override.

No comments: