Espresso.JsConvert.JsDictionaryObject C# (CSharp) Method

JsDictionaryObject() private method

private JsDictionaryObject ( Espresso.JsValue v ) : Espresso.JsObject
v Espresso.JsValue
return Espresso.JsObject
        private JsObject JsDictionaryObject(JsValue v)
        {
            JsObject obj = new JsObject(this._context, v.Ptr);
            int len = v.Length * 2;
            for (int i = 0; i < len; i += 2)
            {
                var key = (JsValue)Marshal.PtrToStructure(new IntPtr(v.Ptr.ToInt64() + (16 * i)), typeof(JsValue));
                var value = (JsValue)Marshal.PtrToStructure(new IntPtr(v.Ptr.ToInt64() + (16 * (i + 1))), typeof(JsValue));
                obj[(string)FromJsValue(key)] = FromJsValue(value);
            }
            return obj;
        }
#endif