Answers for "enumeratio nc sharp"

C#
3

enumeratio nc sharp

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

Console.Writeline(Products.Milk); // Output = Milk
Console.Writeline((int)Products.Milk); // Output = 1
Posted by: Guest on October-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language