How do I get access to JavaScript array or object items in C#

Oct 4, 2014 at 12:00 PM
I'm new to Jint and maybe even C# and also my English is quite bad so sorry for that.

I used Jint for like 9-12 months ago and there was a simple exapmle in my project:
public class A {
  public string SetMPos(Jint.Native.JsArray pos) {
        System.Windows.Forms.Cursor.Position = new System.Drawing.Point(pos["0"].ToInteger(), pos["1"].ToInteger());
engine.SetParameter("mouse", new A());
engine.Run("mouse.SetMPos([10, 20])");
And this code could set my mouse cursor at the position [10,20].
I know that there is no longer SetParameter() or Run() methods, I have this info from new documentation on github that I have to use like SetValue() and Execute() methods instead but what I cant get now is how to access to my JavaScript array (or objects) values now because Jint no longer has Jint.Native.JsArray type. How should I replace it now?