enum MyColor : byte
{
Red,
Green,
Blue,
Orange
}
string[] ss = Enum.GetNames(typeof(MyColor));
Array bb = Enum.GetValues(typeof(MyColor));
(MyColor)bb.GetValue(0) == MyColor.Red
enum MyColor : byte
{
Red,
Green,
Blue,
Orange
}
string[] ss = Enum.GetNames(typeof(MyColor));
Array bb = Enum.GetValues(typeof(MyColor));
(MyColor)bb.GetValue(0) == MyColor.Red