public static void InvokeDecontamination(ref bool allow) { if (DecontaminationEvent == null) { return; } DecontaminationEvent ev = new DecontaminationEvent { Allow = allow }; DecontaminationEvent.Invoke(ref ev); allow = ev.Allow; }
public static void InvokeDecontamination(ref bool allow) { Decontamination decontamination = DecontaminationEvent; if (decontamination == null) { return; } DecontaminationEvent ev = new DecontaminationEvent { Allow = allow }; decontamination.Invoke(ref ev); allow = ev.Allow; }