示例#1
0
 internal IntPtr Remove(IntPtr handle)
 {
     if (handle != IntPtr.Zero)
     {
         int num1 = 0;
         lock (this)
         {
             this.handleCount--;
             if (this.handleCount < 0)
             {
                 this.handleCount = 0;
             }
             num1 = this.handleCount;
         }
         lock (HandleCollector.internalSyncObject)
         {
             if (HandleCollector.HandleRemoved != null)
             {
                 HandleCollector.HandleRemoved(this.name, handle, num1);
             }
         }
     }
     return(handle);
 }