示例#1
0
 static void Main(string[] args)
 {
     {
         DestructTest t2 = new DestructTest();
     }
     //GC.Collect(3, GCCollectionMode.Forced);
     Console.WriteLine("top");
     using (DisposeTest t = new DisposeTest())
     {
     }
     Console.WriteLine("bottom");
 }
示例#2
0
文件: Program.cs 项目: snellj/code
        static void Main(string[] args)
        {
            {
                DestructTest t2 = new DestructTest();
            }
            //GC.Collect(3, GCCollectionMode.Forced);
            Console.WriteLine("top");
            using (DisposeTest t = new DisposeTest())
            {

            }
            Console.WriteLine("bottom");
        }