循环枚举中的值

直接看代码: 

            IList<string> list = Enum.GetNames(typeof(fileType));// fileType 是枚举类型

            foreach (string type in list)
            {
                    //do something...
            }

posted @ 2008-07-08 17:29  Run.  阅读(1404)  评论(0编辑  收藏  举报