C# Class LibSBMLCSTestRunner.Compiler

the Compile class was written out of the idea to generate wrapper classes in memory at runtime and then compile them ...
Exibir arquivo Open project: sys-bio/libroadrunner-deps

Public Methods

Method Description
GetAssembly ( string source ) : Assembly
GetInstance ( string source, string sClassName ) : object

the execute method takes a stringcollection of wrapper classes, compiles them and executes methods on the classes

GetInstance ( string source, string sClassName, string sLocation ) : object

the execute method takes a stringcollection of wrapper classes, compiles them and executes methods on the classes

addAssembly ( string sAssembly ) : void

adds an assembly to the assembly list ... this list will be needed to add references to that assemblies for the newly compiled class

getLastErrors ( ) : string

Private Methods

Method Description
Compile ( CodeDomProvider provider, string source ) : Assembly

Method Details

GetAssembly() public static method

public static GetAssembly ( string source ) : Assembly
source string
return System.Reflection.Assembly

GetInstance() public static method

the execute method takes a stringcollection of wrapper classes, compiles them and executes methods on the classes
public static GetInstance ( string source, string sClassName ) : object
source string
sClassName string
return object

GetInstance() public static method

the execute method takes a stringcollection of wrapper classes, compiles them and executes methods on the classes
public static GetInstance ( string source, string sClassName, string sLocation ) : object
source string
sClassName string
sLocation string
return object

addAssembly() public static method

adds an assembly to the assembly list ... this list will be needed to add references to that assemblies for the newly compiled class
public static addAssembly ( string sAssembly ) : void
sAssembly string
return void

getLastErrors() public static method

public static getLastErrors ( ) : string
return string