If I have an event like this:
public delegate void MyEventHandler(object sender, EventArgs e); public event MyEventHandler MyEvent;
And adds an event handler as follows:
MyEvent += MyEventHandlerMethod;
... is it possible to somehow register this? In other words - is it possible to have something like:
MyEvent.OnSubscribe += MySubscriptionHandler;
source share