static void Main()
        {
            ClassThatRaisesEvent eventRaiser = new ClassThatRaisesEvent();
             ClassThatHandlesEvent eventHandler =
            new ClassThatHandlesEvent(eventRaiser);

             eventRaiser.SimulateEvent();
        }
コード例 #2
0
        static void Main()
        {
            ClassThatRaisesEvent  eventRaiser  = new ClassThatRaisesEvent();
            ClassThatHandlesEvent eventHandler =
                new ClassThatHandlesEvent(eventRaiser);

            eventRaiser.SimulateEvent();
        }