Пример #1
0
        public static void Raise <T>(this FastSmartWeakEvent <EventHandler <T> > ev, object sender, T e) where T : EventArgs
        {
            EventHandler <T> d = ev.GetRaiseDelegate();

            if (d != null)
            {
                d(sender, e);
            }
        }
Пример #2
0
        public static void Raise(this FastSmartWeakEvent <EventHandler> ev, object sender, EventArgs e)
        {
            EventHandler d = ev.GetRaiseDelegate();

            if (d != null)
            {
                d(sender, e);
            }
        }