private static bool HasMode(int mode, ConsoleWindow.Mode modeToCheck) { return((mode & (int)modeToCheck) != 0); }
private static bool HasMode(int mode, ConsoleWindow.Mode modeToCheck) { return(((ConsoleWindow.Mode)mode & modeToCheck) != (ConsoleWindow.Mode) 0); }