예제 #1
0
        public new void Say()
        {
            PassingEventArgs evt = new PassingEventArgs();
            evt.Value = "From Say()";

            OnBeginEvent(evt);

            System.Console.WriteLine("Dog said \"Woof\"!");

            OnEndEvent(evt);
        }
예제 #2
0
 protected virtual void OnEndEvent(PassingEventArgs evt)
 {
     if(EndEvent != null) {
     EndEvent(this, evt);
     }
 }
예제 #3
0
 protected virtual void OnBeginEvent(PassingEventArgs evt)
 {
     if(BeginEvent != null) {
     BeginEvent(this, evt);
     }
 }