view Jint.Runtime/ClassDescriptor.cs @ 0:e113095f1de0

initial commit, proof of concept
author cin
date Wed, 23 Oct 2013 13:24:57 +0400
parents
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) {
			
		}
	}
}