代码: // 创建编译器实例。
ICodeCompiler complier = (new CSharpCodeProvider().CreateCompiler());
警告 2 “System.CodeDom.Compiler.CodeDomProvider.CreateCompiler()”已过时:“Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.” E:\winform\temp\WindowsApplication8\WindowsApplication8\CalculateExpression.cs 26 39 WindowsApplication8