Visual Studio likes to be helpful when typing:
Event +=
by generating code like:
Event += new EventHandler(EventClassName_Event);
void EventClassName_Event(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
Ideally I would like to remove the explicit delegate and add an explicit private. Like so:
Event += EventClassName_Event;
private void EventClassName_Event(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
I've looked to see if there is a snippet, but found nothing. Any suggestions? I do have ReSharper installed if there is a way that it can do this.