Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


13 Conversions
13.2 Explicit conversions
13.2.2 Explicit enumeration conversions
Paragraph 11 The explicit enumeration conversions are: - 2 From sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, or decimal to any enum-type.
- 3 From any enum-type to sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, or decimal.
- 4 From any enum-type to any other enum-type.
Paragraph 21 An explicit enumeration conversion between two types is processed by treating any participating enum-type as the underlying type of that enum-type, and then performing an implicit or explicit numeric conversion between the resulting types. [Example: For example, given an enum-type E with and underlying type of int, a conversion from E to byte is processed as an explicit numeric conversion (§13.2.1) from int to byte, and a conversion from byte to E is processed as an implicit numeric conversion (§13.1.2) from byte to int. end example] |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

