Exemplo n.º 1
0
 protected override void OnDisposing()
 {
     if (this.handle != IntPtr.Zero)
     {
         int ret = ACBrDll.ECF_Destroy(ref this.handle);
         CheckResult(ret);
     }
 }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (this.handle != IntPtr.Zero)
            {
                ACBrDll.ECF_Destroy(ref this.handle);
                this.handle = IntPtr.Zero;
            }

            if (disposing)
            {
                GC.SuppressFinalize(this);
            }
        }