Javascript Objects?

Aug 19, 2010 at 4:42 AM
Edited Aug 19, 2010 at 4:44 AM

Hello everyone. I'm wondering what type JS objects get resolved to when you pass them as parameters to a delegate defined in C#.

For example, if I have this code, what type should I specify in place of sometype?

JintEngine engine = new JintEngine();
engine.SetFunction("someFunc", new Action<sometype>(...));
engine.Run("var obj = {}; obj.something = 'value'; someFunc(obj);");
-Zane Kaminski


Aug 19, 2010 at 5:14 AM
Hi, You can use JsObject.