static bool RaiseRemovingIPBanEvent([NotNull] IPBanInfo info) { if (info == null) throw new ArgumentNullException("info"); var h = RemovingIPBan; if (h == null) return false; var e = new IPBanCancelableEventArgs(info); h(null, e); return e.Cancel; }
static bool RaiseRemovingIPBanEvent( [NotNull] IPBanInfo info ) { var e = new IPBanCancelableEventArgs( info ); RemovingIPBanEvent.Raise( e ); return !e.Cancel; }