This project has moved and is read-only. For the latest updates, please go here.

How to pass an array

Jun 27, 2011 at 2:22 AM

I like to call engine.SetParameter() and pass an array.
I cannot find how to create a valid JavaScript array in C#.


Jun 28, 2011 at 5:45 AM


scriptEngine.Array.New(new object[] { 1, 2, 3 })

The element types must be supported, see

Jun 28, 2011 at 5:51 AM

Thanks. it is working.