public static string GetDescription(EN enumValue) { var value = enumValue.ToString(); var info = enumValue.GetType().GetField(value); //验证字段是否含有描述特性 if(info.IsDefined(typeof(DescriptionAttribute), true)) { DescriptionAttribute description = (DescriptionAttribute)info.GetCustomAttribute(typeof(Attribute)); return description.Description; } return value; }