System.Threading.EventWaitHandle.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : bool
return bool
		public bool Reset ()
		{
			CheckDisposed ();
			
			return (NativeEventCalls.ResetEvent_internal (Handle));
		}
		

Usage Example

 public void ChangeCollection()
 {
   _handle = new EventWaitHandle(false, EventResetMode.ManualReset);
   var test = new ObservableDictionary<int, string>();
   test.Changed += Dictionary_Changed;
   test.Add(0, "myValue");
   Assert.IsTrue(_handle.WaitOne(10), "Add() is not recognized as a change");
   _handle.Reset();
   test[0] = "newValue";
   Assert.IsTrue(_handle.WaitOne(10), "this[] is not recognized as a change");
   _handle.Reset();
   test.Remove(0);
   Assert.IsTrue(_handle.WaitOne(10), "Remove() is not recognized as a change");
 }
All Usage Examples Of System.Threading.EventWaitHandle::Reset