C# Class CSScriptCompilers.CSharpCompiler

C# compiler. This calss is capable to distinguish strandard and classless C# (CCS|CC#) syntax. It will always normalise CC# syntax to the standard C# when CSharpCode|CSharpScriptCode properties accessed. The parser for CC# is a line-based (but not token-based) parser. And as such it cannot garantee success in 100% cases of parsing valid CC# code. Limitations: At this moment there are no known problems but they may be discovered in the future.
Inheritance: ICodeCompiler
Mostra file Open project: oleg-shilo/cs-script

Public Methods

Method Description
CSharpCompiler ( object options ) : System
CSharpCompiler ( string version ) : System
CompileAssemblyFromDom ( CompilerParameters options, CodeCompileUnit compilationUnit ) : CompilerResults
CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits ) : CompilerResults
CompileAssemblyFromFile ( CompilerParameters options, string fileName ) : CompilerResults
CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames ) : CompilerResults
CompileAssemblyFromSource ( CompilerParameters options, string source ) : CompilerResults
CompileAssemblyFromSourceBatch ( CompilerParameters options, string sources ) : CompilerResults

Method Details

CSharpCompiler() public method

public CSharpCompiler ( object options ) : System
options object
return System

CSharpCompiler() public method

public CSharpCompiler ( string version ) : System
version string
return System

CompileAssemblyFromDom() public method

public CompileAssemblyFromDom ( CompilerParameters options, CodeCompileUnit compilationUnit ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
compilationUnit System.CodeDom.CodeCompileUnit
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromDomBatch() public method

public CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
compilationUnits System.CodeDom.CodeCompileUnit
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromFile() public method

public CompileAssemblyFromFile ( CompilerParameters options, string fileName ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
fileName string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromFileBatch() public method

public CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
fileNames string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromSource() public method

public CompileAssemblyFromSource ( CompilerParameters options, string source ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
source string
return System.CodeDom.Compiler.CompilerResults

CompileAssemblyFromSourceBatch() public method

public CompileAssemblyFromSourceBatch ( CompilerParameters options, string sources ) : CompilerResults
options System.CodeDom.Compiler.CompilerParameters
sources string
return System.CodeDom.Compiler.CompilerResults