No title
No title
John Doe枚举
//枚举转换成字符串
//参数1:枚举的类型, 类型2:枚举变量
string name = Enum.GetName(typeof(FileAccess),access);
Console.WriteLine(name);
//将字符串转化成枚举值
``FileAccess fil = (FileAccess)Enum.Parse(typeof(FileAccess), name);
Console.WriteLine(fil);`