Sponsored Ad

Friday, October 30, 2009

Program Entry point in C#

This article will review the entry points into C # programs, and possible errors that can come across. The function to be called in any C # program is Main. We can have up to four ways to declare Main in our program. These are:

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

0 comments:

Post a Comment

Sponsored Ad

Website Update

Followers