void DumpData(object Sender, UpdateEventArgs e) { if (!e.argument.Equals("-DumpData", StringComparison.OrdinalIgnoreCase)) { return; } // Dump Procedure StringBuilder DataDump = new StringBuilder(); Diagnostics.FormatDumpData(ref DataDump, "ConsoleProvider", ConsoleProvider.ToString() + Environment.NewLine); Diagnostics.FormatDumpData(ref DataDump, "Console", Console.ToString() + Environment.NewLine); Diagnostics.FormatDumpData(ref DataDump, "ArgBuffer", ArgBuffer); Diagnostics.FormatDumpData(ref DataDump, "ConsoleBuffers", ConsoleBuffers); Diagnostics.FormatDumpData(ref DataDump, "UpdateEvents", UpdateEvents); Diagnostics.FormatDumpData(ref DataDump, "Runtime.UpdateFrequency", Runtime.UpdateFrequency); Diagnostics.FormatDumpData(ref DataDump, "updateSource", e.updateSource); // Save and Notify Runtime.UpdateFrequency = UpdateFrequency.None; Me.CustomData = DataDump.ToString(); Echo($"Data Dumped into Custom Data.{Environment.NewLine}Execution Stopped."); ConsoleBuffers["DataDump"] = $"Data Dumped into CustomData.{Environment.NewLine}Execution Stopped."; }