Dynamically ENUM
-
Hi All, Is it possible to make the dynamically enum,means it should be created based on the values picked from DB? Thanks, Lalit
Enums are compile time constants and can't be modified/created at run time.
Navaneeth How to use google | Ask smart questions
-
Hi All, Is it possible to make the dynamically enum,means it should be created based on the values picked from DB? Thanks, Lalit
-
Hi All, Is it possible to make the dynamically enum,means it should be created based on the values picked from DB? Thanks, Lalit
-
Hi All, Is it possible to make the dynamically enum,means it should be created based on the values picked from DB? Thanks, Lalit
You can always compile an unit using CodeDOM, but I doubt it will be any useful, as it will not have any hard-coded references to it. I also suggest using dictionaries to do the job.
-
Enums are compile time constants and can't be modified/created at run time.
Navaneeth How to use google | Ask smart questions
Appartently they can be created at run time, but they'd be fairly useless as far as I can tell.