Last Ray of Hope Home of Kaluriel Hargrove

2Feb/08Off

Turning Enums into Strings

A long time ago, converting enumerations into strings took a very long time depending on how many you had. Imagine having a messaging system you want to be able to use from a scripting language, one change of a name or value and your sending a fire at target command to the file manager.

I came by this wonderful code on CodeProject for converting it at runtime, generating the table for you, you just need the enumeration.

Tagged as: Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.