Пример #1
0
        public void RaiseDynamicˑTest()
        {
            var c = new EventUtilˑRaiseDynamicˑTestClass();

            c.RaiseːEventHandlerEvent();
            c.RaiseːEventHandler1EventArgsEvent();
            c.RaiseːEventHandler1ValueChangedEventArgsEvent();
            c.RaiseːCustomEventHandlerEvent();
        }
Пример #2
0
        public void RaiseDynamicˑPerformanceTest()
        {
            var c = new EventUtilˑRaiseDynamicˑTestClass();

            for (int i = 0; i < 100000; i++)
            {
                c.RaiseːEventHandlerEvent();
                c.RaiseːEventHandler1EventArgsEvent();
                c.RaiseːEventHandler1ValueChangedEventArgsEvent();
//				c.RaiseCustomEventHandler();
            }
        }