public new void Say() { PassingEventArgs evt = new PassingEventArgs(); evt.Value = "From Say()"; OnBeginEvent(evt); System.Console.WriteLine("Dog said \"Woof\"!"); OnEndEvent(evt); }
protected virtual void OnEndEvent(PassingEventArgs evt) { if(EndEvent != null) { EndEvent(this, evt); } }
protected virtual void OnBeginEvent(PassingEventArgs evt) { if(BeginEvent != null) { BeginEvent(this, evt); } }