Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- class ShowConsoleColors
- {
- static void Main(string[] args)
- {
- var colors = Enum.GetValues(typeof(ConsoleColor)).Cast<ConsoleColor>();
- foreach (ConsoleColor color in colors)
- {
- Console.ForegroundColor = color;
- Console.WriteLine($"{color.ToString()} ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement