I have created a custom class to have more options for background color than ConsoleColor which only gives me 15 options. How can I assign my custom color to console.background?
Console.BackgroundColor = ???;
public enum CustomColor
{
DarkBlue, DarkGreen, DarkCyan, Teal, DarkRed, Violet, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White, Aquamarine, Azure, BurlyWood, CadetBlue, Gainsboro, Gold, Gray, Khaki, LawnGreen, LightGreen, LightSkyBlue, Linen, MediumOrchid, MediumPurple, MistyRose, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleTurquoise
}

Amit GuptaRank #190 · 12.8K reputationPosted Apr 9, 2020, 10:23 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 9, 2020, 10:29 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 10, 2020, 2:00 AM EDT