20 references to Color
mscorlib (20)
system\console.cs (20)
718private static Win32Native.Color ConsoleColorToColorAttribute(ConsoleColor color, bool isBackground) 724Win32Native.Color c = (Win32Native.Color) color; 728c = (Win32Native.Color) ((int)c << 4); 733private static ConsoleColor ColorAttributeToConsoleColor(Win32Native.Color c) 736if ((c & Win32Native.Color.BackgroundMask) != 0) 737c = (Win32Native.Color) (((int)c) >> 4); 754Win32Native.Color c = (Win32Native.Color) csbi.wAttributes & Win32Native.Color.BackgroundMask; 763Win32Native.Color c = ConsoleColorToColorAttribute(value, true); 774attrs &= ~((short)Win32Native.Color.BackgroundMask); 795Win32Native.Color c = (Win32Native.Color) csbi.wAttributes & Win32Native.Color.ForegroundMask; 804Win32Native.Color c = ConsoleColorToColorAttribute(value, false); 815attrs &= ~((short)Win32Native.Color.ForegroundMask); 920Win32Native.Color c = ConsoleColorToColorAttribute(sourceBackColor, true); 995Contract.Assert((int)Win32Native.Color.ColorMask == 0xff, "Make sure one byte is large enough to store a Console color value!"); 996_defaultColors = (byte) (csbi.wAttributes & (short) Win32Native.Color.ColorMask);