Answers for "enum definition in c #"

C#
0

c# enum

enum Level 
{
  Low,
  Medium,
  High
}

//You can access enum items with the dot syntax:
Level myVar = Level.Medium;
Console.WriteLine(myVar);
Posted by: Guest on July-01-2021
0

c# enum

enum Level 
{
  Low,
  Medium,
  High
}

Level myVar = Level.Medium;
Console.WriteLine(myVar);
Posted by: Guest on May-23-2021

C# Answers by Framework

Browse Popular Code Answers by Language