C# Corner

Resources  

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.

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
European SharePoint Conference