Mercurial > pub > Jint1
view Jint.Runtime/ClassDescriptor.cs @ 2:4aed85a1f558
implemented simple vm2
author | cin |
---|---|
date | Fri, 25 Oct 2013 15:52:16 +0400 |
parents | e113095f1de0 |
children |
line wrap: on
line source
using System; using System.Collections.Generic; namespace Jint.Runtime { public class ClassDescriptor { int m_classId; Dictionary<string,PropertyDescriptor> m_props = new Dictionary<string, PropertyDescriptor>(); public int ClassId { get { return m_classId; } } public ClassDescriptor (int classId) { m_classId = classId; } public bool TryGet (string name, out PropertyDescriptor descriptor) { return m_props.TryGetValue (name, out descriptor); } public void DefineProperty(string name, PropertyDescriptor descriptor) { } } }