?
Solved

Different formats of Main method in C# !

Posted on 2006-05-05
1
Medium Priority
?
207 Views
Last Modified: 2010-04-16

Hi,

I want to know different formats of

Main

method in C#.

Thanks,
Kishore
0
Comment
Question by:kishore_peddi
1 Comment
 
LVL 10

Accepted Solution

by:
rivusglobal earned 2000 total points
ID: 16616906
The only requirement for a Main method, is that it conforms to one of the following prototypes:

  static void Main() {...}
  static void Main(string[] args) {...}
  static int Main() {...}
  static int Main(string[] args) {...}

Also check this page for more information on Main:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfMainPG.asp
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Screencast - Getting to Know the Pipeline
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question