public static bool FreeConsole() { switch (PlatformIdentifier) { case PlatformID.Win32NT: return Win32FreeConsole(); default: return true; } }