从零开始的C#,必然从Hello,World起步
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01Class //命名空间
{
internal class Program // 类
{
static void Main(string[] args) //Main()方法,可以创建对象和调用其他方法
{
//Console 控制台
//WriteLine 写一行
Console.WriteLine("Hello, World");
//Console.ReadKey() 1、暂停作用 2、等待输入任意值后进行关闭
Console.ReadKey();
}
}
}