public void Print(string content) { Delegate[] delegates = Log?.GetInvocationList(); // delegates[1] = null; // LogConsole($"Printing... {content}"); // LogFile($"Printing... {content}"); //if (Log!=null) // Log($"Printing... {content}"); Log?.Invoke($"Printing... {content}"); // .. // LogConsole($"Printed."); Log?.Invoke($"Printed."); Finish?.Invoke(10); decimal?cost = CalculateCost?.Invoke(10); if (cost.HasValue) { Display(cost.Value); } Completed?.Invoke(); Error?.Invoke(this, EventArgs.Empty); }