|
-
September 19th, 2008, 10:39 AM
#1
Dynamic enum
Hi guys,
here is the idea. I'm writing a piece of code that performs different actions based on type parameter. The types are obviously encapsulated in enum in C# code. This is all OK except that I'm hard coding actions list in enum - therefore upon requirement to add another action C# code needs to be modified and recompiled and this means that whole application needs to be redeployed, downtime needs to be scheduled etc, etc.
So I would like to have a list of options in my .config file and dynamically build a enum out of them. How this can be done? Any advice, suggestion or criticism is welcome.
Thanks,
Tommy
PS
I'm using .NET 2.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|