title: How to Dispose ManualResetEvent
body: <p>Hi 
  When i use following code:</p>
  
  <pre><code> myManualResetEvent.Dispose();
  </code></pre>
  
  <p>Compiler gives this error:</p>
  
  <pre><code> 'System.Threading.WaitHandle.Dispose(bool)' is inaccessible due to its protection level.
  </code></pre>
  
  <p>howevr following line works fine:</p>
  
  <pre><code> ((IDisposable)myManualResetEvent).Dispose();
  </code></pre>
  
  <p>is it the correct way to dispose or at runtime it might crash in some scenerios.</p>
  
  <p>Thanks.</p>