title: Unwiring events not working with FileSystemWatcher
body: <p>I have an application that is using FileSystemWatcher to monitor a folder for changes to files. The problem is that when it catches these events, it needs to do changes to those documents (updating links), and this of course triggers the events again, throwing the application into a loop.</p>
  
  <p>So I tried this:</p>
  
  <pre><code>    UnWireEvents(); //Turn off the events while updating the documents
              ChangeAllLinks();
              WireEvents(); //Turn the events back on 
  
     private void WireEvents()
              {
                  _monitor.FileChanged += new EventHandler(_monitor_FileChanged);
              }
  
              private void UnWireEvents()
              {
                  _monitor.FileChanged -= new EventHandler(_monitor_FileChanged);
              }
  </code></pre>
  
  <p>But it doesn't seem to work, the application still goes into a loop. So why doesn't it work, and what do I need to do instead?</p>