c# change foreground within writeline code example Example: c# console foreground color Console.ForegroundColor = ConsoleColor.DarkGreen;