C# Class Microsoft.Scripting.ScriptCode

ScriptCode is an instance of compiled code that is bound to a specific LanguageContext but not a specific ScriptScope. The code can be re-executed multiple times in different scopes. Hosting API counterpart for this class is CompiledCode.
Show file Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
CreateScope ( ) : Scope
Run ( ) : object
Run ( Scope scope ) : object

Protected Methods

Method Description
ScriptCode ( SourceUnit sourceUnit ) : System.Linq.Expressions

Private Methods

Method Description
ToString ( ) : string

Method Details

CreateScope() public method

public CreateScope ( ) : Scope
return Scope

Run() public method

public Run ( ) : object
return object

Run() public abstract method

public abstract Run ( Scope scope ) : object
scope Scope
return object

ScriptCode() protected method

protected ScriptCode ( SourceUnit sourceUnit ) : System.Linq.Expressions
sourceUnit SourceUnit
return System.Linq.Expressions