Hi ZoneRunner,
There are several ways to do this. One is to use ClearScript's
You can't use
Good luck!
There are several ways to do this. One is to use ClearScript's
ExtendedHostFunctions
class:var xHost = new ExtendedHostFunctions(); engine.Script.SomeObject.Foo = xHost.type(typeof(Foo)); engine.Script.SomeObject.Bar = xHost.type(typeof(Bar)); engine.Execute("bar = new SomeObject.Bar(123)");
instanceof
to examine a host object's type information. If that's a requirement, consider defining native JavaScript types that wrap your host types as necessary.Good luck!