Immediate Execution of Csharp Code?

L

Leon_Amirreza

Hi,
I want to let user type a line of C# code in a textbox and execute it.
How can I do that? I need something like interpreter of C# rather than its
compiler.

I considered using CSahrp and CodeDom namespaces but they seem not suitable
for my purpose because:

1- It needs a complete win forms or console C# App (I need just few lines of
code or a complete function to run immediately).
2- It should compile the C# app and gives an Assembly on disk; Its slow (can
It give the binary module in a memory mapped file for example? then how
should i load that module?).

And also ASP.Net doesnt suit because its called from web but I need to run
the C# code locally!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top