title: Null Reference Exception When Raising Event in C#
body: <p>What would be the equivalent C# code against following VB.Net code:</p>
  
  <pre><code>Public Event EndOfVideo()
  
  Private Sub RaiseEndOfVideo()
          RaiseEvent EndOfVideo()
  End Sub
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is the equivalent C# code that telerik converter generated for me.</p>
  
  <pre><code>public event EndOfVideoEventHandler EndOfVideo;
  public delegate void EndOfVideoEventHandler();
  
  private void RaiseEndOfVideo()
  {
      if (EndOfVideo != null) {
          EndOfVideo();
      }
  }
  </code></pre>
  
  <p>Calling RaiseEndOfVideo doesn't trigger/invoke EndOfVideo event, and Null Reference Exception is raised.</p>