public bool Reset() { /* This needs locking since another thread could dispose the handle */ lock (this) { CheckDisposed(); return(NativeEventCalls.ResetEvent(SafeWaitHandle)); } }
[System.Security.SecuritySafeCritical] // auto-generated public bool Reset() { #if MONO var res = NativeEventCalls.ResetEvent(safeWaitHandle); #else bool res = Win32Native.ResetEvent(safeWaitHandle); #endif if (!res) #if MONO { throw new IOException(); } #else { __Error.WinIOError(); } #endif return(res); }