Declare Color as constant

.net, c#

Solution

Look at the `KnownColor` enumeration. It will likely cater for what you need.

Problem

How can I declare the `Color` type as `const` like this: ``` private const Color MyLovedColor = Color.Blue; ``` That doesn't work because the Color.Blue is static not const. (readonly won't help me because I need the color for an attribute which "support" constants only

Original source

Related problems