Excellent , So the basic idea is to have the enum with pre-prepared values which get changed at runtime ..
Not elegant but it will do the trick . Ben > -----Original Message----- > From: Unmoderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Don Demsak > Sent: Wednesday, 18 May 2005 9:37 PM > To: [email protected] > Subject: Re: [ADVANCED-DOTNET] Enumerations > > 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 =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
