Home »
.Net »
C# Programs
C# 'Enum' Class – Properties, Methods, Examples / Programs
In C# programming language, an Enum is a special class that represents the set of constant which are read-only variables. An Enum class provides the base class for enumerations.
This section contains the solved C# Enum Class Reference – Properties, Methods, Examples. Practice these programs to learn the concept of enumerations, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the C# Enum Class Reference – Properties, Methods, Examples.
List of C# Enum Class Reference – Properties, Methods, Examples
- C# program to demonstrate the Enum
- C# program to print the integer values of enum constants
- C# program to get the type-code of enum constants
- C# program to print the name of enum constant based on an integer value
- C# program to get the hash-code of enum constants
- C# program to demonstrate the use of CompareTo() method of Enum class
- C# program to demonstrate the use of Equals() method of Enum class
- C# program to demonstrate the use of Format() method of Enum class
- C# program to demonstrate the use of GetHashCode() method of Enum
- C# program to demonstrate the GetName() method of Enum class
- C# program to demonstrate the GetNames() method of Enum class
- C# program to demonstrate the GetType() method of Enum class
- C# program to demonstrate the GetTypeCode() method of Enum class
- C# program to demonstrate the GetUnderlyingType() method of Enum class
- C# program to demonstrate the GetValues() method of Enum class
- C# program to demonstrate the HasFlag() method of Enum class
- C# program to demonstrate the IsDefined() method of Enum class
- C# program to demonstrate the use of Parse() method of Enum class
- C# program to demonstrate the use of ToObject() method of Enum class