Beispiel #1
0
 private void TestMethod(string msg)
 {
     Console.WriteLine(msg + " Should Run");
     safeEvent -= TestMethod2;
 }
Beispiel #2
0
 public SafeEventExample()
 {
     safeEvent += TestMethod;
     safeEvent += TestMethod2;
     safeEvent.Invoke("Test");
 }