博客园站长
这是人类成长进步中记录的每一时刻
摘要: public enum color {red=1,green=2,blue=3}Type typ = typeof(color);1、根据 索引获取 字符串 结果为 “red” 字符串string s = typ.GetEnumName(1); 2、根据字符串获取索引 结果为 0string s =... 阅读全文
posted @ 2012-10-27 12:58 dm3344 阅读(1783) 评论(0) 推荐(0)