摘要:
Mono.CSharp.Evaluator提供了方便的动态编译功能,但默认的Compile方法,只支持无参的方法,如:Mono.CSharp.Evaluator evaluator = new Mono.CSharp.Evaluator(new Mono.CSharp.CompilerSettings(), new Mono.CSharp.Report(new ConsoleReportPrinter()));var method = evaluator.Compile("System.Console.WriteLine(\"dynamic compiled\") 阅读全文