摘要: 1.枚举2.获取枚举描述/// /// 获取对象描述信息/// /// /// public static string GetDescription(this object input){ if (input == null) return string.Empty; Type enumType = input.GetType(); if (!enumType.IsEnum) { return string.Empty;}var name = Enum.GetName(enumType, Convert.ToInt32(input)); if (name == null... 阅读全文
posted @ 2012-09-13 09:27 流失的痕迹 阅读(284) 评论(0) 推荐(0)