Example #1
0
 public void Dispose()
 {
     if (First != null)
     {
         First.Dispose();
     }
     if (Second != null)
     {
         Second.Dispose();
     }
     disposed = true;
 }
Example #2
0
    static void Main()
    {
        //using (First s = new First())
        //{
        //    System.Console.WriteLine("Hi");
        //}

        using First f = new First();

        f.Dispose();

        System.Console.ReadKey();
    }
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     First.Dispose();
     Second.Dispose();
     Updated = null;
 }
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     First.Dispose();
     Second.Dispose();
     DataConsolidated = null;
 }