C# Reference - C# Main Method - main Method - C# Reference - C# Main Method - main Method
The LBTT Spot
"Lifeline is focused on developing and marketing systems designed to assist in the early detection of breast and ovarian cancer."



C# Reference - C# Main Method - main Method

View C# Source Code

Article Categories:

.Net Framework
.Net Framework 1.1
ADO.NET
ASP.NET
Assemblies
Asynchronous Methods
C#
Collections
Configuration
Delegates
Events
Pocket PC
Regular Expressions
Smart Devices
SQL Server
Visual C#
Visual Studio .NET
Visual Studio .NET 2003
Windows Forms
XML

C# .Net Fun Menu

View Current Page's ASP.NET Source Code
C# Reference
C# Study Flash Cards
Valuable Links
Contact Us
Site Map
Mike's Portfolio

C# Reference Search:

Full Text Search:

Articles by Author:

Code Examples (zipped):

C# Reference
      C# Main Method
           main Method


  • C# Main Method: [main Method] Reference from Microsoft®


  • Any one class in a project that contains a Main method will be invoked upon initial execution of the application. Every application should have a Main() method defined otherwise your application wouldn't know where to start! ONLY one class in any given project/application can contain a Main method.

    The main method can return either void or int and MUST be static. public class myClass { public int Main(String[] args) { // this is the return code return 0; } }