コード例 #1
0
 private void CheckHandlers()
 {
     if (StartEvent != null)
     {
         Console.WriteLine("Handlers still subscribed:");
         foreach (var handler in StartEvent.GetInvocationList())
         {
             Console.WriteLine("{0}.{1}", handler.Method.DeclaringType, handler.Method.Name);
         }
     }
 }