title: Unsubscribe anonymous method in C#
body: <p>Is it possible to unsubscribe an anonymous method from an event?</p>
  
  <p>If I subscribe to an event like this:</p>
  
  <pre><code>void MyMethod()
  {
      Console.WriteLine("I did it!");
  }
  
  MyEvent += MyMethod;
  </code></pre>
  
  <p>I can un-subscribe like this:</p>
  
  <pre><code>MyEvent -= MyMethod;
  </code></pre>
  
  <p>But if I subscribe using an anonymous method:</p>
  
  <pre><code>MyEvent += delegate(){Console.WriteLine("I did it!");};
  </code></pre>
  
  <p>is it possible to unsubscribe this anonymous method?  If so, how?</p>