Visual Studio loves to be useful when typing:
Event +=
creating 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 explicitly closed one. For instance:
Event += EventClassName_Event;
private void EventClassName_Event(object sender, EventArgs e)
{
throw new System.NotImplementedException();
}
I looked to see if there was a fragment, but I didnβt find anything. Any suggestions? I have ReSharper, if there is a way he can do this.
source
share