Hi!
i want to write a program which can compile any enterd code by a user.
for example: the user will write his code in a textbox or another edit components
then i will compile it and return the result of his program.
so if any one about awaye to do that i will be so thanked for him
Compiling and executing a code at runtime
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Shankar Arigela3 pointsPosted Oct 25, 2005, 8:38 PM EDT
1. CodeNamespace
2. CodeCompileUnit
3. CSharpCodeProvider
4. System.CodeDom.Compiler.ICodeCompiler
5. compiler.CompileAssemblyFromDom
Using the combination of all these classes, we can generate a Code compilation modules. Please check these in MSDN and try implementing as per your need.
Thanks,
Shankar.
1 short reply
Andrzej WegierskiRank #1,729 · 877 pointsPosted Oct 25, 2005, 8:31 AM EDT