using System.Runtime.InteropServices; namespace EC.Util.Common; public static class SystemUtil { [DllImport("Kernel32")] public static extern void AllocConsole(); [DllImport("Kernel32")] public static extern void FreeConsole(); }