Exemplo n.º 1
0
        static void Main(string[] args)
        {
            StaticVar s = new StaticVar();

            s.Count();
            s.Count();
            s.Count();
            WriteLine("Variable num: {0}", StaticVar.GetNum());
        }
Exemplo n.º 2
0
        static void Main()
        {
            StaticVar s = new StaticVar();

            s.Count();
            s.Count();
            s.Count();
            Console.WriteLine("变量 num: {0}", StaticVar.GetNum());
            Console.ReadKey();
        }