Joe Mamma Posted August 7, 2004 Posted August 7, 2004 Quote Can you create enumerations on the fly? well yes. . . what are you trying to do exactly. . . Describe in non-programming words what you want to model. Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Diesel Posted August 7, 2004 Author Posted August 7, 2004 I was just wondering. I don't have a use for it right now. Quote
Joe Mamma Posted August 7, 2004 Posted August 7, 2004 Quote I was just wondering. I don't have a use for it right now. There are two ways to skin this cat - Dynamic Code Generation and Compliation Dynamic Assembly Emmission The previous is the easiest but has the most overhead. The latter is the most flexible but can be a little tricky (Look in the helpfile for AssemblyBuilder where it outlines the task.) I recommend getting the two books Programming C# and Programming .Net Components. These should be in everybodies library right next to the "Gang Of Four" and Refactoring: Improving the Design of Existing Code. Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
puma Posted August 9, 2004 Posted August 9, 2004 Joe Mamma, your post made me think of something I once wanted to do, and is possible if generating and compiling dynamic code. I wanted to store all the apllication's configuration options in one class in order to show them in a PropertyGrid control. But, the problem is I want to make these options dynamic (I want to be able to add/remove options). Is this possible? If yes, please provide a link to how Dynamic Code can be used. Quote
Denaes Posted August 9, 2004 Posted August 9, 2004 Quote Is this possible? If yes' date=' please provide a link to how Dynamic Code can be used.[/quote'] Here is a link to Divil's page, a tutorial that involves writing a script in your application (a textbox) and compiling it during runtime. http://www.divil.co.uk/net/articles/plugins/scripting.asp Not entirely sure what the limitations are though. Quote
Heiko Posted August 11, 2004 Posted August 11, 2004 Don't forget to think about the poor guy who will have to do support and maintenance for your program, once that it's finished. To me, the idea of dynamic enumerations seems to be more on the "research" side than on the "practical" side. Quote .nerd
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.