C# 클래스 NanoByte.Common.Native.CompilerUtils

Provides helper methods for compiling .NET code at runtime.
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
CompileCSharp ( [ compilerParameters, [ code, [ manifest ) : void

Compiles a string of C# code using the newest C# compiler available on the system.

비공개 메소드들

메소드 설명
GetCSharpCompiler ( this compilerParameters, string manifestFilePath ) : CodeDomProvider

Detects the best possible C# compiler version and instantiates it.

NewCSharpCodeProvider ( string version ) : CodeDomProvider

메소드 상세

CompileCSharp() 공개 정적인 메소드

Compiles a string of C# code using the newest C# compiler available on the system.
public static CompileCSharp ( [ compilerParameters, [ code, [ manifest ) : void
compilerParameters [ The compiler configuration (e.g. output file path).
code [ The C# code to compile.
manifest [ The contents of the Win32 manifest to apply to the output file. Will only be applied if a C# 3.0 or newer compiler is available.
리턴 void