Hi furesoft,
You can use ClearScript's
And then:
Good luck!
You can use ClearScript's
ExtendedHostFunctions
for this purpose. Here's a sample:publicclass XmlHttpRequest { publicstaticvoid SomeMethod() { // code goes here } } publicclass Globals { privatereadonly ExtendedHostFunctions _extHost = new ExtendedHostFunctions(); publicobject XmlHttpRequest { get { return _extHost.type(typeof(XmlHttpRequest)); } } }
engine.Script.globals = new Globals(); engine.Execute("globals.XmlHttpRequest.SomeMethod()");