Tag: Enumeration

How to Declare an Enumeration with Explicit Values in C# ?

There are times when you want to have a specific values to the enumeration to the enum items . For example , if you need to match particular values from the database or from a web service etc. How to Declare an Enumeration with Explicit Values in C# ? Below is a sample code snippet that demonstrates how to declare an enum with explicit values…

What are Enumerations ?

Enumeration are like a group of integer constants where each of the symbols in the enumeration stands for an integer value starting from 0 (by default). You can create an Enum in C# with the keyword enum like the below example