Create event invokator template

Hi!

I don't really like the pattern of the "Create event invokator" template.
Is it possible to change it via some setting?

Instead of ...
public event EventHandler TheEvent;

public void InvokeTheEvent(EventArgs e)
{

EventHandler handler = TheEvent;
if (handler != null) handler(this, e);
}

... I'd like to get ...
public event EventHandler TheEvent;

public void OnTheEvent(EventArgs e)
{

if (TheEvent != null) TheEvent(this, e);
}

Ideas?

Lars-Erik


Please sign in to leave a comment.