>However, I was wondering if I could add literals to an existing Enum at
>runtime ?
No, you can't change existing types at runtime, whether or not they
are enums.
Why do you want to do that anyway? Since enum members are constants,
they are mostly used at compile time.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Junaid Khan - 06 May 2005 23:16 GMT
I agree.
I actually wanted to explore all options to somehow synch my enums with the
DB.
The only way would be to run an emitter exe periodically to generate an
assembly.
The emitter exe would fetch the values from the DB and generate appropriate
enums.
> >However, I was wondering if I could add literals to an existing Enum at
> >runtime ?
[quoted text clipped - 6 lines]
>
> Mattias