예제 #1
0
 private static void unsubscribeEvents(PLEvent plevent)
 {
     if (plevent != null)
     {
         plevent.GetInvocationList().ToList().ForEach(d => plevent -= (PLEvent)d);
     }
 }
예제 #2
0
 private static void unsubscribeEvent(PLEvent plEvent)
 {
     if (plEvent != null)
     {
         plEvent.GetInvocationList().ToList().ForEach(sub => plEvent -= (PLEvent)sub);
     }
 }