Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         Close();
         if (gch.IsAllocated)
         {
             gch.Free();
         }
     }
     if (handle != IntPtr.Zero)
     {
         CFObject.CFRelease(handle);
         handle = IntPtr.Zero;
     }
 }