Ejemplo n.º 1
0
        private static long[] AsLongArray(JsValue value)
        {
            ArrayInstance jarr = value.AsArray();

            long[] result = new long[jarr.GetLength()];
            for (int i = 0; i < result.Length; i++)
            {
                result[i] = (long)jarr.GetProperty(i.ToString()).Value.AsNumber();
            }
            return(result);
        }