C# Corner


About enum

In computer programming Language an enumerated data type also called enumeration or Enum and a categorical variable in statistics. In Programming language some time programmer wants to create own data type for special purpose called Enum data type which is consisting of a set of named values called elements, members, enumeral, or enumerators of the type. The enumerator names is used for identifiers which behave as constants in the language. When we are declare any variables as Enum type then these variables are hold any of the enumerators as a value. In other words we can say an enumerated type has values that are different from each other and that can be compared and assigned. for Example It can be used for days of the week (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY and SATURDAY) , directions (NORTH, SOUTH, EAST and WEST) etc.

Hire a remote developer
Looking to add more bandwidth to your software team? Web Developers, designers, testers are now available on demand. Flexible hours, very competitive rates, expert team and High Quality work.

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now