Common Type System—Other Helper Methods
Other Helper Methods
The System.Enum type has a set of useful methods for dealing with enums, particularly in the areas of
parsing, validating, and generating lists of valid names or values. You will notice that most of the methods
still don’t have generics-based versions in 2.0, although it would make perfect sense; instead, most
accept the type of the precise enum as a Type parameter. We’ve seen most of these methods in use
already in the above code snippets, and all others are easy to figure out.
|

