Tuesday, May 10, 2011

why the entry point of C# should be static void Main()

here is a couple of links which says the answer properly

Msdn: http://msdn.microsoft.com/en-us/library/acy3edy3.aspx
SO:http://stackoverflow.com/questions/5954439/c-entry-point-function

why the method name should be Main()

The using System; directive references a namespace called System that is provided by the Common
Language Infrastructure (CLI) class library. This namespace contains the Console class referred to in
the Main method.

taken from ecma-international

No comments:

Post a Comment