Rhino.Context.ToObject C# (CSharp) Method

ToObject() public static method

Convert the value to an JavaScript object value.
Convert the value to an JavaScript object value.

Note that a scope must be provided to look up the constructors for Number, Boolean, and String.

See ECMA 9.9.

Additionally, arbitrary Java objects and classes will be wrapped in a Scriptable object with its Java fields and methods reflected as JavaScript properties of the object.

public static ToObject ( object value, Scriptable scope ) : Scriptable
value object any Java object
scope Scriptable /// global scope containing constructors for Number, /// Boolean, and String ///
return Scriptable
		public static Scriptable ToObject(object value, Scriptable scope)
		{
			return ScriptRuntime.ToObject(scope, value);
		}

Same methods

Context::ToObject ( object value, Scriptable scope, Type staticType ) : Scriptable
Context