C# Class Jint.Runtime.TypeConverter

Show file Open project: ImagineLearning/Jint Class Usage Examples

Public Methods

Method Description
CheckObjectCoercible ( Engine engine, Jint.Native.JsValue o ) : void
FindBestMatch ( Engine engine, MethodBase methods, Jint.Native.JsValue arguments ) : IEnumerable
GetPrimitiveType ( Jint.Native.JsValue value ) : Types
ToBoolean ( Jint.Native.JsValue o ) : bool

http://www.ecma-international.org/ecma-262/5.1/#sec-9.2

ToInt32 ( Jint.Native.JsValue o ) : int

http://www.ecma-international.org/ecma-262/5.1/#sec-9.5

ToInteger ( Jint.Native.JsValue o ) : double

http://www.ecma-international.org/ecma-262/5.1/#sec-9.4

ToNumber ( Jint.Native.JsValue o ) : double

http://www.ecma-international.org/ecma-262/5.1/#sec-9.3

ToObject ( Engine engine, Jint.Native.JsValue value ) : Jint.Native.Object.ObjectInstance
ToPrimitive ( Jint.Native.JsValue input, Types preferredType = Types.None ) : Jint.Native.JsValue

http://www.ecma-international.org/ecma-262/5.1/#sec-9.1

ToString ( Jint.Native.JsValue o ) : string

http://www.ecma-international.org/ecma-262/5.1/#sec-9.8

ToUint16 ( Jint.Native.JsValue o ) : ushort

http://www.ecma-international.org/ecma-262/5.1/#sec-9.7

ToUint32 ( Jint.Native.JsValue o ) : uint

http://www.ecma-international.org/ecma-262/5.1/#sec-9.6

TypeIsNullable ( Type type ) : bool

Method Details

CheckObjectCoercible() public static method

public static CheckObjectCoercible ( Engine engine, Jint.Native.JsValue o ) : void
engine Engine
o Jint.Native.JsValue
return void

FindBestMatch() public static method

public static FindBestMatch ( Engine engine, MethodBase methods, Jint.Native.JsValue arguments ) : IEnumerable
engine Engine
methods System.Reflection.MethodBase
arguments Jint.Native.JsValue
return IEnumerable

GetPrimitiveType() public static method

public static GetPrimitiveType ( Jint.Native.JsValue value ) : Types
value Jint.Native.JsValue
return Types

ToBoolean() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
public static ToBoolean ( Jint.Native.JsValue o ) : bool
o Jint.Native.JsValue
return bool

ToInt32() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.5
public static ToInt32 ( Jint.Native.JsValue o ) : int
o Jint.Native.JsValue
return int

ToInteger() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.4
public static ToInteger ( Jint.Native.JsValue o ) : double
o Jint.Native.JsValue
return double

ToNumber() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.3
public static ToNumber ( Jint.Native.JsValue o ) : double
o Jint.Native.JsValue
return double

ToObject() public static method

public static ToObject ( Engine engine, Jint.Native.JsValue value ) : Jint.Native.Object.ObjectInstance
engine Engine
value Jint.Native.JsValue
return Jint.Native.Object.ObjectInstance

ToPrimitive() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.1
public static ToPrimitive ( Jint.Native.JsValue input, Types preferredType = Types.None ) : Jint.Native.JsValue
input Jint.Native.JsValue
preferredType Types
return Jint.Native.JsValue

ToString() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.8
public static ToString ( Jint.Native.JsValue o ) : string
o Jint.Native.JsValue
return string

ToUint16() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.7
public static ToUint16 ( Jint.Native.JsValue o ) : ushort
o Jint.Native.JsValue
return ushort

ToUint32() public static method

http://www.ecma-international.org/ecma-262/5.1/#sec-9.6
public static ToUint32 ( Jint.Native.JsValue o ) : uint
o Jint.Native.JsValue
return uint

TypeIsNullable() public static method

public static TypeIsNullable ( Type type ) : bool
type System.Type
return bool