Enums, Enum Sets, parsing n' stuff
Posted by: Rick Strahls WebLog,
on 30 Jun 2006 |
View original
Enumerated types (Enums) are a great thing especially when you’re coming from a background that didn’t have them as I do (and always cursed it back then). Enums allow you to easily set up ‘known values’ for an property or field that takes a fixed number of known values. Without Enums I used to use value codes (1 = this, 2 = that etc.) which is both cryptic to manage and doesn’t provide helpful information at runtime.
Enums are easy enough to create and use when...