What is enum in C#?
What is enum in C#?
The enum keyword is used to create numeric constants in .NET framework. Its a value type with a set of related named constants often referred to as an enumerator list. It's a primitive data type, which is user-defined and this keyword is used to declare an enumeration. enum all members are of an enum type. It's should be a numeric value for each enum type. By default enumeration underlying type is int.
Please log in or register to add a comment.