C# Class MsieJavaScriptEngine.Helpers.TypeMappingHelpers

Type mapping helpers
Exibir arquivo Open project: Taritsyn/MsieJavaScriptEngine

Public Methods

Method Description
MapToHostType ( object value ) : object

Makes a mapping of value from the script type to a host type

MapToHostType ( object args ) : object[]

Makes a mapping of array itemp from the script type to a host type

MapToScriptType ( object value, JsEngineMode engineMode ) : object

Makes a mapping of value from the host type to a script type

MapToScriptType ( object args, JsEngineMode engineMode ) : object[]

Makes a mapping of array items from the host type to a script type

Method Details

MapToHostType() public static method

Makes a mapping of value from the script type to a host type
public static MapToHostType ( object value ) : object
value object The source value
return object

MapToHostType() public static method

Makes a mapping of array itemp from the script type to a host type
public static MapToHostType ( object args ) : object[]
args object The source array
return object[]

MapToScriptType() public static method

Makes a mapping of value from the host type to a script type
public static MapToScriptType ( object value, JsEngineMode engineMode ) : object
value object The source value
engineMode JsEngineMode JavaScript engine mode
return object

MapToScriptType() public static method

Makes a mapping of array items from the host type to a script type
public static MapToScriptType ( object args, JsEngineMode engineMode ) : object[]
args object The source array
engineMode JsEngineMode JavaScript engine mode
return object[]