Is it possible to load and execute C# snippets using DLR?

眉间皱痕 提交于 2019-12-03 07:03:43

It sounds like you're really talking about the C# "compiler as a service" (at the end of this video), which will hopefully be in the 5.0 timescale for .NET (although Mono has it now). For now, CSharpCodeProvider is the best we have (which works largely like "csc").

David Robbins

Although Marc offered an alternative for me, I read this related SO question and C# and VB are not supported as of yet.

Jeff

You may find this relevant...though it doesn't run on the DLR itself.

Mono Compiler as a Service (MCS)

It has the advantage of running snippets and not loading a new assembly on every compile like CodeDom does.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!