循环枚举中的值
直接看代码:
IList<string> list = Enum.GetNames(typeof(fileType));// fileType 是枚举类型
foreach (string type in list)
{
//do something...
}