public enum Volume
{
Low,
Medium,
High
}
[Flags]
public enum MyColors
{
Yellow = 1,
Green = 2,
Red = 4,
Blue = 8
}
Note: Always add the FlagsAttribute
to a bit field Enum type.
public enum VolumeEnum // Incorrect
public enum Color
{
ColorBlue, // Remove Color, unnecessary
ColorGreen,
}