Exemplo n.º 1
0
 static void Main(string[] args)
 {
     using (DisposeExample test = new DisposeExample())
     {
         test.DoSomething();
     }
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            DisposeExample test = new DisposeExample();

            test.Dispose();

            DisposeExample test1 = new DisposeExample();
        }