title: C# adding and removing events from a timer
body: <p>I am trying to add and remove events from a timer and I have the following code:</p>
  
  <pre><code>Timer myTimer = new Timer(); // Windows.Forms Timer
  
  public void addEvent(MyDelegate ev)
  {
      myTimer.Tick += new EventHandler(ev);
  }
  
  public void removeEvent(MyDelegate ev)
  {
      myTimer.Tick -= new EventHandler(ev);
  }
  </code></pre>
  
  <p>I don't know If Im doing anything stupid in trying to add and remove delegates in this fashion, I am able to add delegates and get them to fire as expected. However, when I attempt to remove the events, they continue to fire on Timers Tick.</p>
  
  <p>Can anyone see anything obviously wrong?</p>