static void Main(string[] args) { StaticVar s = new StaticVar(); s.Count(); s.Count(); s.Count(); WriteLine("Variable num: {0}", StaticVar.GetNum()); }
static void Main() { StaticVar s = new StaticVar(); s.Count(); s.Count(); s.Count(); Console.WriteLine("变量 num: {0}", StaticVar.GetNum()); Console.ReadKey(); }