Common Type System—Other Helper Methods


Jump to: navigation, search
Visual C# Tutorials
.NET Framework Tutorials

Common Type System

© 2006 Wiley Publishing Inc.

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.


Previous_Page_.gif Next_Page_.gif





Personal tools