© { JSL }
60
Text Box: enum Conversions
enum Conversions
·implicit conversion
wliteral 0 to any enum type
·explicit conversions
wfrom enum to enum via underlying type
wfrom enum to numeric type (including char)
wfrom numeric type (including char) to enum
The set of values that an enum can take on
is not limited by its enum members. Any
value of the underlying type of the enum
can be cast to the enum type, and is a
distinct, valid value of that type.
C# language spec (0.26)