Published
- 1 min read
enumeratio nc sharp
The solution for this is noted below
enumeratio nc sharp
Solution
enum Products
{
Apple = 0,
Milk = 1,
Vodka = 2,
}
Console.Writeline(Products.Milk); // Output = Milk
Console.Writeline((int)Products.Milk); // Output = 1
Try other methods by searching on the site. That is if this doesn’t work