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.
No Comments »
RSS feed for comments on this post. TrackBack URL
Leave a comment
You must be logged in to post a comment.