C# Class Jurassic.Library.ClrInstanceWrapper

Represents a non-native CLR object instance.
Inheritance: ObjectInstance
Show file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
ClrInstanceWrapper ( ScriptEngine engine, object instance ) : System

Creates a new ClrInstanceWrapper object.

ToString ( ) : string

Returns a primitive value that represents the current object. Used by the addition and equality operators.

Returns a textual representation of this object.

Private Methods

Method Description
GetPrototypeObject ( ScriptEngine engine, object instance ) : ObjectInstance

Returns an object instance to serve as the next object in the prototype chain.

Method Details

ClrInstanceWrapper() public method

Creates a new ClrInstanceWrapper object.
public ClrInstanceWrapper ( ScriptEngine engine, object instance ) : System
engine ScriptEngine The associated script engine.
instance object The CLR object instance to wrap.
return System

ToString() public method

Returns a primitive value that represents the current object. Used by the addition and equality operators. Returns a textual representation of this object.
public ToString ( ) : string
return string