Compile and run dynamic code, without generating EXE?

后端 未结 8 1860
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 14:17

I was wondering if it was possible to compile, and run stored code, without generating an exe or any type of other files, basically run the file from memory.

Basical

8条回答
  •  失恋的感觉
    2020-11-27 14:28

    Yes, you can do this. It is very slow, but you can certainly do it. Look at the CodeDOM or the (new CSharpCodeProvider().CreateCompiler()) in .Net.

提交回复
热议问题