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