In C# we can define two types of classes, one that has a Main() method and another without a Main() method. When we define a class with a Main() method, it is the entry point of our executable program for the application. The second type of class is used to build a class library for building application features.
1. Create a Console Application
Go to "File" -> "New" -> "Project...". The "New Project" window will appear, as in:

Click on the "OK" button and create a project with a solution.
2. Main Method
The Main() method is an entry point for execution program. Each execution program contains at least one Main() method. In our project default a Program class creates in Program.cs file.

3. Create Executable Program
The following Program is an executable program that is showing arguments on command.




Vithal WadjePosted Jan 3, 2013, 12:43 AM
good one sir ,but even it become a better if you start it from basic