using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace @return
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!!");
Console.ReadKey();
}
}
}
分析:
1.第一行是一个using指令,引用了System命名空间。命名空间(namespace)中包括类型声明及命名空间声明(如System命名空间包含Console类和其他的类)
2.namespace @return定义了命名空间,命名空间可以按照层次有效地组织C#程序中的类型,以保证其唯一性。
3. class Program定义了类成员,即名为Main的方法。Main的方法使用static修饰声明静态方法,将作为程序入口。



