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