📜  枚举值到字符串 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:44.256000             🧑  作者: Mango

代码示例1
class Program.
static void Main(string[] args)
{
   Enum wkday = Weekday.Friday;
   Console.WriteLine("Enum string is '{0}'", wkday.ToString());
   Console.ReadKey();
}