Enum extension method to get value from Description attribute.
I’m going to show how to get the value from the Description attribute on each enum. We have the following enum as an example public enum MonthOfYear { [Description(“First month of the year”)] January, [Description(“Second month of the year”)] February, [Description(“Third month of the year”)] March // … and so on } If you use … [Read more…]
