Mercurial > pub > Jint1
view Jint.Runtime/JsObject.cs @ 1:033ebe7432d5
vm v2
author | cin |
---|---|
date | Thu, 24 Oct 2013 19:45:57 +0400 |
parents | e113095f1de0 |
children |
line wrap: on
line source
using System; using System.Collections.Generic; namespace Jint.Runtime { public class JsObject { ClassDescriptor m_classDescriptor; List<object> m_data; public JsObject () { } public object Get (string name) { PropertyDescriptor descriptor; if (m_classDescriptor.TryGet (name, out descriptor)) return m_data.Count <= descriptor.index ? null : m_data [descriptor.index]; else return null; } } }