title: How to know which FileSystemWatcher is calling Method?
body: <p>I'm creating a List of FileSystemWatchers. </p>
  
  <pre><code>List&lt;ExtSystemFileWatcher&gt; fswMonitors = new List&lt;FileSystemWatcher&gt; ();
  </code></pre>
  
  <p>The number of them in the list is dynamic depending on the user. This is done from a INI file and an array of Monitor objects from my own Monitor class are created. The class simply has varibles like the Montior number, Path to monitor, Ext to look for etc.</p>
  
  <pre><code>if (iNumberMonitors &gt; 0)
  {
      obMonitors = ReadMonitors(iNumberMonitors);
  
      for (int iCounter = 0; iCounter &lt; iNumberMonitors; iCounter++)
      {
          FileSystemWatcher fswCurrent = new FileSystemWatcher();
          fswCurrent.Path = obMonitors[iCounter].strMonPath;
          fswCurrent.EnableRaisingEvents = true;
          fswCurrent.NotifyFilter = NotifyFilters.FileName;
          fswCurrent.Filter = "*." + obMonitors[iCounter].strMonExt;
          fswCurrent.Deleted += OnDelete;
          fswMonitors.Add(fswCurrent);
      }
  }
  </code></pre>
  
  <p>In the 'OnDelete' Method that each FileSystemWatcher calls if the Delete event fires I need to know which of the FileSystemWatchers is calling it.</p>
  
  <p>My question is how can I know which FileSystemMonitor in the List is calling the method?</p>