Subscribing to event is easy: type +=, hit Tab:
But is there an easy way to create event handler method when there is no += ? To example when event is a method parameters:
My current approach is very inefficient:
- Look at method signature (using F12 - go to definition);
- Copy type of
EventHandler<T>; - manually type and paste to create event handler:
void foo(object sender,Ctrl+Vargs).
Do I miss something? Is there a quicker way to create foo?
P.S.: I am talking about event handlers, but this question may be extended to creating delegate callbacks too.


