Customizing event invocators
Hi all,
I like the feature Resahrper has regarding the "Create event invocator", it really speeds things up for me.
I would like to customize the snippet from this:
protected virtual void OnSomethingHappened(SomeEventArgs e)
{
EventHandler<SomeEventArgs> handler = SomethingHappened;
if (handler != null)
{
handler(this, e);
}
}
into this:
private void RaiseSomethingHappened(SomeEventArgs e)
{
var handler = SomethingHappened;
if (handler != null)
{
handler(this, e);
}
}
I already searched for this in the "Templates Explorer" but I was unable to find it.
Thanks in advance,
Eduardo Brites
Please sign in to leave a comment.
Hello Eduardo
Unfortunately, there is no way to change Context Action template.
Thanks!