Enums are useful language features. But what happens when you want to display a string version of an enum member rather than just casting the member to a string? You could manually create a switch statement for conversion, and periodically update such functions when extending the source enum. Or you could use the power of reflection and attributes to do it automatically.
Entries tagged with 'ComponentModel' Articles and information on C# and .NET development topics
This article describes extending a custom
TypeConverter created previously to support better code generation, expandable properties, and dropdown lists containing standard values.
Type converters allow classes to be edited via designers such as the
PropertyGrid. This article details how to create a simple type converter to and from a
string for use with a