title: Is there a way to know in VB.NET if a handler has been registered for an event?
body: <p>In C# I can test for this...</p>
  
  <pre><code>public event EventHandler Trigger;
  protected void OnTrigger(EventArgs e)
  {
      if (Trigger != null)
          Trigger(this, e);
  }
  </code></pre>
  
  <p>Is there a way to do this in VB.NET? Test for null I mean?</p>
  
  <p><strong>MORE INFO</strong>  </p>
  
  <p>I forgot to mention.  I have classes written in C# but I am writing my unit tests in VB.NET.  </p>
  
  <p>I am trying this in the unit test...</p>
  
  <pre><code>If myObject.Trigger IsNot Nothing Then  
      ''#do something
  End If
  </code></pre>
  
  <p>This is causing a compile time error which says ... "Public Event Trigger is an Event and cannot be called directly.   Use the RaiseEvent statement to raise an event."</p>
  
  <p>Seth</p>