May 2010
Intermediate to advanced
1272 pages
61h 18m
English
When introducing enumerations, you learned that they support only numeric types. There is another limitation if you plan to implement CLS-compliant enumerations. Only CLS-compliant types can characterize CLS-compliant enumerations; therefore, the SByte, UShort, UInteger, and ULong types cannot be used within CLS-compliant enumerations. Another important consideration is that CLS-compliant enumerations must be decorated with the Flag attribute. The following is an example of a CLS-compliant enumeration:

The Flag attribute indicates the compiler that an enumeration has to be considered as a bit ...
Read now
Unlock full access