Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Red isn't a constant
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01064507
Message ID:
01064571
Views:
16
>Einar,
>
>The following is from the C# programmers reference that applies to const.
>
>One of the types: byte, char, short, int, long, float, double, decimal, bool, string, an enum type, or a reference type.
>
>The Color type is a value type ie. it is a structure and is derived from System.Value.
>
>Regards
>Neil

Thanks Neil. I was looking for exactly that in the help but couldn't find it. I wonder why structures and classes can't be constants. For now I am just going to accept that that is the way it is.

Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform