Exemplo n.º 1
0
 protected override bool ReleaseHandle()
 {
     if (this.handle != (IntPtr)(-1))
     {
         DiagnosticsNativeMethods.CloseHandle(this.handle);
     }
     return(true);
 }
Exemplo n.º 2
0
 protected override bool ReleaseHandle()
 {
     return(DiagnosticsNativeMethods.CloseHandle(this.handle));
 }