Event event Code snippet for an event and the corresponding On... method Roland Weigelt
eventName Name of the event. EventRaised argsType Type of the event args. EventArgs public event EventHandler<$argsType$> $eventName$; protected virtual void On$eventName$($argsType$ e) { EventHandler<$argsType$> handler = this.$eventName$; if (handler!=null) handler( this, e ); } $end$