You cannot define a method inside the definition of an enumeration type. To add functionality to an enumeration type, create an extension method. The default value of an enumeration type E is the ...
Enumerated types can be defined with an 'enum base type' and the individual name declarations can be assigned integral numerical values. This, along with static type casting, makes enums an attractive ...