C# Class MsieJavaScriptEngine.Helpers.TypeMappingHelpers

Type mapping helpers
Afficher le fichier Open project: Taritsyn/MsieJavaScriptEngine

Méthodes publiques

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

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

MapToHostType() public static méthode

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
Résultat object[]

MapToScriptType() public static méthode

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
Résultat object

MapToScriptType() public static méthode

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
Résultat object[]