Click here to Skip to main content
15,867,453 members
Articles / Programming Languages / C#

How to generate element names for an enumeration

25 Sep 2017CPOL2 min read 16.4K   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".
This is an old version of the currently published tip/trick.

Only logged in members can view this content

Please go to the C# Table of Contents to view the list of available articles in this section.