阅读背景:

使用CodeDomProvider进行编译不允许使用C#或VB的新功能

来源:互联网 

I'm compiling some C# and VB code at run time using the CodeDomProvider, CompilerInfo, and CompilerParameters. It works great, and I really like being able to add scripting support to my application, but it only seems to support .NET 2.0 syntax. For example, the var keyword isn't supported in C#, and the If(bool, string, string) expression isn't supported in VB.I'm compiling some C# and VB code at run time u




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: