예제 #1
0
 // x
 protected virtual void OnEventName(EventArgs e)
 {
     EventName?.Invoke(this, e);
 }
예제 #2
0
 public static event Action EventName; // <-- This is what the listener adds to.
 public static void FunctionName()     // <-- This is what you run to trigger events.
 {
     EventName?.Invoke();
 }