public static void Fire <TSender>(this EventHandlerSender <TSender> eventHandler, TSender sender) { if (eventHandler != null) { eventHandler(sender, EventArgs.Empty); } }
public static void Notify <TSender> (this EventHandlerSender <TSender> handler, TSender sender) { if (handler != null) { handler(sender); } }