Blog Arolla

Étiquette : enum

Polymorphic enums in C#, generic incrementation

Consultez ici l’article précédent During the implementation of my polymorphic enum, I have chosen to allow several types for the underlying “ordinal” value, as it is also possible for standard C# enums… From the MSDN documentation, the allowed underlying types for enum types are the following (although other value types such as char are eligible,…