System.ComponentModel.DescriptionAttribute in portable class library
问题 I am using the Description attribute in my enums to provide a user friendly name to an enum field. e.g. public enum InstallationType { [Description("Forward of Bulk Head")] FORWARD = 0, [Description("Rear of Bulk Head")] REAR = 1, [Description("Roof Mounted")] ROOF = 2, } And accessing this is easy with a nice helper method: public static string GetDescriptionFromEnumValue(Enum value) { DescriptionAttribute attribute = value.GetType() .GetField(value.ToString()) .GetCustomAttributes(typeof