Click here to Skip to main content
15,890,825 members
Articles / Programming Languages / C#

How to Generate Element Names for an Enumeration

Rate me:
Please Sign up or sign in to vote.
4.52/5 (14 votes)
2 Oct 2017CPOL2 min read 16.6K   10  
I present a simple method to convert the elements in an enumeration into strings. This tip is suitable for enumerations whose elements are of the form RedAndBlack, which readily converts to "Red And Black".

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
C#/WPF/C++ Windows developer

Comments and Discussions