packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/EventHandlerExtensionMethods.cs
/// <summary>
/// Safely raises an event using EventArgs.Empty
/// </summary>
/// <param name="eventHandler">EventHandler to raise</param>
/// <param name="sender">Event sender</param>
Safely raises an event using EventArgs.Empty
Safely raises an event using EventArgs . Empty
public static void SafeRaise(this EventHandler eventHandler, object sender)
        {
            if (eventHandler != null)
            {
                eventHandler(sender, EventArgs.Empty);
            }
        }
public static void SafeRaise ( this EventHandler eventHandler , object sender ) { if ( eventHandler != null ) { eventHandler ( sender , EventArgs . Empty ) ; } }
Safely raises an event using EventArgs.Empty
Safely raises an event using EventArgs . Empty
EventHandler
this
sender
object
None
eventHandler
EventHandler to raise
EventHandler to raise