C
craig
Using C#, what is the best way to store a System.Drawing.Color value as a
constant?
Even though the Color struct is a value type, the following code does not
work:
public const System.Drawing.Color color = System.Drawing.Color.Blue;
Apparently, the Color struct cannot be evaluated at compile time. Can it be
stored as hex value?
Thanks!
constant?
Even though the Color struct is a value type, the following code does not
work:
public const System.Drawing.Color color = System.Drawing.Color.Blue;
Apparently, the Color struct cannot be evaluated at compile time. Can it be
stored as hex value?
Thanks!