摘要:
通过 System.ComponentModel.DescriptionAttribute 描述枚举值的中文意思,并填充到dropdownlist中1、定义枚举值using System.ComponentModel;public enum GenderTypes{[Description("男")]male = 1,[Description("女")]female = 0}2、Emun操作类public staticclass EnumUtil { private static Dictionary<string, Dictionary<i 阅读全文
posted @ 2011-07-20 09:15
HTTP500
阅读(140)
评论(0)
推荐(0)
浙公网安备 33010602011771号