diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Jint.Runtime/ClassDescriptor.cs	Wed Oct 23 13:24:57 2013 +0400
@@ -0,0 +1,33 @@
+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) {
+			
+		}
+	}
+}
+