摘要: /// /// 获取枚举Description的Name /// /// 枚举 /// public static string GetDescription(Enum enumName) { var name = enumName.ToString(); var type = enumName.GetType(); var fieldInfo = type.GetField(name); var arrDesc = (DescriptionAttribute[])fieldInfo.GetCustomAttributes(typeof(DescriptionAt... 阅读全文
posted @ 2013-12-27 09:31 等待是一生最初的苍老 阅读(248) 评论(0) 推荐(0) 编辑