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

Converting Enum Member Names and Values in C#

16 Feb 2021CPOL 4.6K   6   8
A caching scheme to aid converting enum member names to values and vice versa
This tip details a generic class that provides caching and methods for converting any enum type in between strings and values. It uses two dictionaries for the caches, one to convert strings and the other to convert enum values to strings.
We're sorry, but the article you are trying to view was deleted at 16 Feb 2021.

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