.NETGURU
System.Enum Class
Information   Base Types   Related Resources

Provides the base class for enumerations.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • View this type on MSDN
  • View this type on WinFX 247
    Articles (3)Discussions (192)MembersRotorChanges
    Articles

    Page: 1
    Enumerates
    DotNetJunkies
    In this article, Pierre demonstrates how the class System.Enum can be useful. He also runs through an example of the new functionality applied to enums through the .NET Framework.
    Extolling the Virtues of Enumerated Types
    MSDN
    Most programmers are already familiar with enumerated types. But just to review, an enumerated type defines a set of symbolic names and values. Of course, a programmer can always write a program using 0 to represent red, 1 to represent green, and so on. However, there are at least two reasons why you shouldn't hardcode numbers into their code and should instead use an enumerated type.
    Using Enumerations in C#
    The Code Project
    In C# we can use the enum keyword to create our own enumerated types. C# maps enum to System.Enum and thus we can use several member functions provided by System.Enum on our enum types. Instead of explaining more I take you straight to the sample program I have written to demonstrate how enum can be used. The program is well-commented, but if you have any doubts I'd be glad to help you out if it is within my capability.
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification