All pastes #2048684 Raw Edit

Unnamed

public text v1 · immutable
#2048684 ·published 2011-04-20 16:42 UTC
rendered paste body
 switch (LoggerColor.ToLower())
            {

                case "black": Console.ForegroundColor = ConsoleColor.Black; break;
                case "blue": Console.ForegroundColor = ConsoleColor.Blue; break;
                case "cyan": Console.ForegroundColor = ConsoleColor.Cyan; break;
                case "darkblue": Console.ForegroundColor = ConsoleColor.DarkBlue; break;
                case "darkcyan": Console.ForegroundColor = ConsoleColor.DarkCyan; break;
                case "darkgray": Console.ForegroundColor = ConsoleColor.DarkGray; break;
                case "darkgreen": Console.ForegroundColor = ConsoleColor.DarkGreen; break;
                case "darkmagenta": Console.ForegroundColor = ConsoleColor.DarkMagenta; break;
                case "darkred": Console.ForegroundColor = ConsoleColor.DarkRed; break;
                case "darkyellow": Console.ForegroundColor = ConsoleColor.DarkYellow; break;
                case "gray": Console.ForegroundColor = ConsoleColor.Gray; break;
                case "green": Console.ForegroundColor = ConsoleColor.Green; break;
                case "magenta": Console.ForegroundColor = ConsoleColor.Magenta; break;
                case "red": Console.ForegroundColor = ConsoleColor.Red; break;
                case "white": Console.ForegroundColor = ConsoleColor.White; break;
                case "yellow": Console.ForegroundColor = ConsoleColor.Yellow; break;
            }