I would like to know if it is possible to get attributes of the enum values and not of the enum itself? For example, suppose I have the following <
enum
And if you want the full list of names you can do something like
typeof (PharmacyConfigurationKeys).GetFields() .Where(x => x.GetCustomAttributes(false).Any(y => typeof(DescriptionAttribute) == y.GetType())) .Select(x => ((DescriptionAttribute)x.GetCustomAttributes(false)[0]).Description);