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.
Afficher le fichier Open project: MerlinBrasil/Forex-Strategy-Trader Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

CSharp_Compiler() public méthode

Constructor.
public CSharp_Compiler ( ) : System.CodeDom.Compiler
Résultat System.CodeDom.Compiler

CompileSource() public méthode

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