title: Event must be of delegate type?
body: <p>Not very familiar with declaring and using events and received error,</p>
  
  <blockquote>
    <p>Event must be of delegate type</p>
  </blockquote>
  
  <p>Basically want to pass <code>IMyInterface</code> as a dependency to another class where that class can subscribe to receive <code>MyClassEvent</code> events and the event data is <code>MyClass</code>.</p>
  
  <pre><code>public interface IMyInterface
  {
     event MyClass MyClassEvent;
  }
  
  public class Implementation: IMyInterface
  {
       event MyClass MyClassEvent;
       public void OnSomethingHappened
       {
           MyClassEvent?.Invoke(); // pass MyClass to subscribers
       }
  }
  
  public class AnotherClass(IMyInterface ...)
  {
      OnMyClassEvent(MyClass args)
      {
         // do something
      }
  }
  </code></pre>