Autogenerating event accessors

Hi - I use the Alt-Insert feature for autogenerating property get and set

However, I would like to have a similar feature for events eg:

private EventHandler _myEvent;

<alt-insert> + appropriate selection should now produce:

public Event EventHandler MyEvent {
add { _myEvent += value; }
remove { _myEvent -= value; }

Maybe this is already available and I am just being ignorant.


Please sign in to leave a comment.