title: C#: understanding event syntax
body: <p>i need some help understanding how i can create a new custom event. i read from <a href="http://osix.net/modules/article/?id=685" rel="nofollow noreferrer">here</a> ... </p>
  
  <pre><code>public delegate void ChangingHandler (object sender, CarArgs ca); 
  public event ChangingHandler Change; 
  ...
  private void car_Change(object sender, CarArgs ca) {
      MessageBox.Show(ca.Message());
  } 
  ...
  car.Change+=new Car.ChangingHandler(car_Change); // add event handler
  ...
  Change(this,ca); // call event
  </code></pre>
  
  <p>1st, i dont really get the delegate part. in a normal variable declartion, </p>
  
  <pre><code>protected string str1;
  </code></pre>
  
  <p>but here i have the extra (<code>ChangingHandler</code>). how do i make sense of this? i know its something like a ChangingHandler will be used for handling the event but it throws me off abit. </p>
  
  <pre><code>public event ChangingHandler Change
  </code></pre>
  
  <p>then</p>
  
  <pre><code>car.Change+=new Car.ChangingHandler(car_Change)
  </code></pre>
  
  <p>i dont really get the syntax <code>new Car.ChangingHandler(car_Change)</code>. </p>