codedom
C# Compiling User Supplied Code And Using
What I\'m trying to do is allow a user to write a method in a textbox and have my code call that method. This will eventua开发者_运维问答lly be used in a demo applet for optimization given a goal func[详细]
2023-03-05 16:50 分类:问答Embedding XML in Assembly using CodeDOM
I have an XML generated at runtime. I need to embed this XML content into an assembly using CodeDOM. The开发者_JAVA百科 XML will be accessed later from the assembly.[详细]
2023-03-03 08:16 分类:问答compiling assembly from the other just compiled assembly
I need to compile assembly in memory, that can compile another one. There is a form with one button. Here is a code of the form[详细]
2023-02-27 06:50 分类:问答Execute code in assembly and access its objects
i have a difficult question: I want to write some code into a textbox and compile it at runtime, like \"Application.GetSystem().ObjectList.Count\" so that i can get the result and display it in anoth[详细]
2023-02-26 02:25 分类:问答Can you explain very briefly what CodeDOM is and used for with a simple real life example?
Can yo开发者_Python百科u explain very briefly what CodeDOM is and used for with a simple real life example?[详细]
2023-02-24 18:54 分类:问答How can I reference an indexed property with CodeDOM?
How can I add index parameters to a reference to a property through CodeDom? With a CodeMethodInvokeExpression I am able attach a list of parameters:[详细]
2023-02-24 06:41 分类:问答how to add the text of a label to code dom?
I have a form in which th开发者_开发技巧ere are various labels and a button..on the button click event there is a code written which generates a cs file in which i want the text of the label to be dis[详细]
2023-02-22 14:34 分类:问答Performance Considerations When Dynamically Compiling a .cs File
I have a .cs file that I would like to share between two projects. I am not able (mostly due to business constraints) to build the .cs file into a .dll and either reference it in each project or drop[详细]
2023-02-17 15:08 分类:问答HUGE problems using CodeDom compiler, can't use namespaces in the dynamic code
I\'m trying to create dynamically generated code based on user input (just like a mini-compiler). But my problem is that i need to use the PresentationFramework.dll assembly inside the dynamic code, a[详细]
2023-02-16 21:43 分类:问答setting private properties of classes
I have some very old code which uses reflection to set properties of objects, e.g something like this:[详细]
2023-02-14 16:17 分类:问答