Descriptions for Enum

Awhile ago I created a method to simulate a Enum but based on a string value rather than integral numeric (published here on CodeProject). It also allows for adding and extracting a description.

However, if you’re just looking for a lightweight way to add a description to your enums, this blog post posits a simple, elegant way to add and use a description. It requires .NET 3.5 or higher since it uses extension methods.

This entry was posted in Coding and tagged .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.