The Methods of System.Enum

   


The Methods of System.Enum

The enum keyword is an alias for System.Enum located in the .NET Framework class library. System.Enum provides numerous valuable methods relevant for enumerations. You can study them by looking at the .NET Framework Documentation. It is beyond the scope of this book to provide a discussion of these, but the incomplete list of functionality that follows should give you an idea of System.Enums usefulness. You can

  • Convert strings to enumerated values.

  • Convert enumerated values into readable text.

  • Determine whether a particular value is one of the defined values of an enumeration.

  • Check the underlying type of the enumeration.

  • Determine the symbolic name of an enumeration member representing a particular value.

To fully understand how the enum methods are applied, you will need a more detailed understanding of C# and OOP presented over the next few chapters.


   


C# Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 286
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net