Using the DescriptionAttribute to prettify your enumerations(moggoly.me.uk)
submitted by
yesthatmcgurk(4063) 4 years ago
the article details a wrapper that can be used to get a well-formatted string version of an enumeration value by using the DescriptionAttribute to provide the formatted string. The comments includes an extension method version that works for any enum type.
|category: C#
|Views: 529
tags:
C# another
Everyones tags:
Your Tags: