Check out example codes for "enumeratio nc sharp". It will help you in understanding the concepts better.

Code Example 1

enum Products
{
	Apple = 0,
    Milk = 1,
    Vodka = 2,
}

Console.Writeline(Products.Milk); // Output = Milk
Console.Writeline((int)Products.Milk); // Output = 1

Learn ReactJs, React Native from akashmittal.com