Actually, the best way to extend Enums is thru the Attribute Based
Programming approach.  You can read about it in my Fun with Attribute
Based Programming – Extending Enumerations article:
http://www.donxml.com/FunwithAttributeBasedProgramming.htm and
download the code here:
http://donxml.com/presentations/ExtendingEnums.zip

It is very easy to implement and I use this coding style to create an
Enum of Stored Proc parameters (along with the extract metadata, via
attributes).  But you can easily use this approach for a lot of other
things (like static lookup tables).

Don

Reply via email to