Why can I cast an event I declare but not one defined in the Form class
public event System.EventHan dler MyEvent;
private void SomeFn()
{
MulticastDelega te d1 = (MulticastDeleg ate)this.MyEven t;
// this line won't compile
MulticastDelega te d2 = (MulticastDeleg ate)this.Load;
}
public event System.EventHan dler MyEvent;
private void SomeFn()
{
MulticastDelega te d1 = (MulticastDeleg ate)this.MyEven t;
// this line won't compile
MulticastDelega te d2 = (MulticastDeleg ate)this.Load;
}
Comment