title: Why to define a reference to the event before call the event invoke?
body: <p>I found some example of simple event sending. 
  I don't understand the line <code>EventHandler&lt;string&gt; handler = MyEvent;</code></p>
  
  <p>Why they need to define a reference to the event and not just use the <code>myEvent</code> to make the invoke?</p>
  
  <p>The code</p>
  
  <pre><code>    public event EventHandler&lt;string&gt; MyEvent;  
  
      protected void SendEvent(string e)
      {
          EventHandler&lt;string&gt; handler = MyEvent;
          if (handler != null)
          {
              handler(this, e);
          }
      }
  </code></pre>