Compile and run dynamic code, without generating EXE?

后端 未结 8 1906
爱一瞬间的悲伤
爱一瞬间的悲伤 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:49

    In Mono you use CSharp.Evaluator. It works truly in memory v. some of the other solutions mentioned that write out and read back in a file under the hood.

提交回复
热议问题