1, the basic framework

A C # program includes the following components:

Namespace declaration (Namespace declaration)
a class
Class methods
Class attribute
a Main method
statement (Statements) & Expressions (Expressions)
Notes
a using System;
namespace HelloWorldApplication
{
/ class name of the HelloWorld /
class the HelloWorld
{
/ main function /
static void Main (String args [])
{
/ I of a C # program /
Console.WriteLine ( "the HelloWorld!");
the Console.ReadKey ();
}
}
}

Guess you like

Origin www.cnblogs.com/liang-xp/p/11563085.html