title: Calling an event handler in C#
body: <p>I've been trying to learn how to use event handlers in C# but I can't figure out what handler(this, e) does in the following code:</p>
  
  <pre><code>public event EventHandler ThresholdReached;
  
  protected virtual void OnThresholdReached(EventArgs e)
  {
      EventHandler handler = ThresholdReached;
      if (handler != null)
      {
          handler(this, e);
      }
  }
  </code></pre>
  
  <p>Is it trying to call the event handler method (this) with the event (e)?</p>