How to start first program on C# / ASP

 In the Code and Text Editor window displaying the Program.cs file, place the cursor in
the Main method immediately after the opening brace, {, and then press Enter to create
a new line. On the new line, type the word Console, which is the name of a builtin
class. As you type the letter C at the start of the word Console, an IntelliSense list
appears. This list contains all of the C# keywords and data types that are valid in this
context. You can either continue typing or scroll through the list and double-click the
Console item with the mouse. Alternatively, after you have typed Con, the IntelliSense
list automatically homes in on the Console item and you can press the Tab or Enter key
to select it.
Main should look like this:
static void Main(string[] args)
{

}

Follow pic:


Write on visual studio 2010 below code:

 

 Then Press Ctrl + Shift + F5
See below output>>>>>>>



No comments: