C# Class Forex_Strategy_Trader.CSharp_Compiler

CSharp_Compiler manages the compilation of source code to an assembly. This class is thread safe, so multiple threads are capable to utilize it simultaneously.
ファイルを表示 Open project: MerlinBrasil/Forex-Strategy-Trader Class Usage Examples

Public Methods

Method Description
AddReferencedAssembly ( Assembly assembly ) : void

For the source code to compile, it needs to have a reference to assemblies to use the IL code inside them.

CSharp_Compiler ( ) : System.CodeDom.Compiler

Constructor.

CompileSource ( string source, int>.Dictionary &compilerErrors ) : Assembly

Compile a single source file to assembly.

Method Details

AddReferencedAssembly() public method

For the source code to compile, it needs to have a reference to assemblies to use the IL code inside them.
public AddReferencedAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly An assembly to add.
return void

CSharp_Compiler() public method

Constructor.
public CSharp_Compiler ( ) : System.CodeDom.Compiler
return System.CodeDom.Compiler

CompileSource() public method

Compile a single source file to assembly.
public CompileSource ( string source, int>.Dictionary &compilerErrors ) : Assembly
source string
compilerErrors int>.Dictionary Compiler errors, if any.
return System.Reflection.Assembly