IList<string> list = Enum.GetNames(typeof(fileType));// fileType 是枚举类型
foreach (string type in list)
{
//do something...
}
IList<string> list = Enum.GetNames(typeof(fileType));// fileType 是枚举类型
foreach (string type in list)
{
//do something...
}
转载于:https://www.cnblogs.com/Agger/archive/2008/07/08/1238366.html