#1 – What the Main() Signature Looks Like
June 18, 2010 5 Comments
The standard entry point for a C# program is a static function named Main(). It typically looks like this:
static void Main(string[] args)
Everything a C# Developer Needs to Know, in Bite-Sized Chunks
June 18, 2010 5 Comments
The standard entry point for a C# program is a static function named Main(). It typically looks like this:
static void Main(string[] args)
I am leaving comment after reading your every blog..hope you won’t mind …
Pingback: #707 – More Than One Class in A Program Can Contain A Main Method « 2,000 Things You Should Know About C#
I’m afraid you forgot to mention about the 1-dimensional array of string also as argument to the Main().
static void Main(string[] args)
Main can also return an int instead of a void. The value returned will become the exit code of the process.
Reblogged this on computerGuyCJ's Blog and commented:
For anyone who is a C# programmer, or wants to be a C# programmer, or was a C# programmer and needs a refresher, this is the best reference I have ever read. Sean is practical, succinct, and humorous.