Click here to Skip to main content
15,892,072 members

Comments by albsilva_m2u (Top 1 by date)

albsilva_m2u 11-Jun-12 13:49pm View    
Reason for my vote of 4
Excelent work! Made my own variation to have it delimited in a #region and automatically create a EventArgs derived class named accordingly to the event name:

<![CDATA[/// $Name$ event to indicate $Description$
#region Code for the $Name$ event
/// <summary>
/// Event to indicate $Description$
/// </summary>
public event EventHandler<$Name$Args> $Name$;
/// <summary>
/// Called to signal to subscribers that $Description$
/// </summary>
/// <param name="e"></param>
protected virtual void On$Name$($Name$Args e)
{
EventHandler<$Name$Args> eh = $Name$;
if (eh != null)
{
eh(this, e);
}
}
public class $Name$Args : EventArgs
{
}
#endregion]]>