An enum is a value type.
Value types in .Net are generally stored in the stack. You typically use enums to represent named constants in your application.

There are two types of enums: simple enums and flag enums. While the former type is used to represent a closed set of values, the latter is used to provide support for bitwise operations using the enum values.This article presents a discussion on enums, what they are, why they are useful, and the design constraints when using enums in applications and how to implement a type-safe enum pattern with code examples wherever appropriate.Why should we use enums? How are they helpful?
Enums are helpful as you can set your domain-specific keywords that would be treated as integer constants — these all help you to write clean, readable code in your application. You can use enums in switch statements as well. You can use enums in lieu of static constants in your application. Here’s a nice article from MSDN that outlines the design guidelines that should be adhered to when working with enums: read this article in full or to leave a comment, please click here

Leave a Reply