Mercurial > pub > Jint1
comparison Jint.Runtime/ClassDescriptor.cs @ 0:e113095f1de0
initial commit, proof of concept
author | cin |
---|---|
date | Wed, 23 Oct 2013 13:24:57 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e113095f1de0 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 | |
4 | |
5 namespace Jint.Runtime | |
6 { | |
7 public class ClassDescriptor | |
8 { | |
9 int m_classId; | |
10 | |
11 Dictionary<string,PropertyDescriptor> m_props = new Dictionary<string, PropertyDescriptor>(); | |
12 | |
13 | |
14 public int ClassId { | |
15 get { return m_classId; } | |
16 } | |
17 | |
18 public ClassDescriptor (int classId) | |
19 { | |
20 m_classId = classId; | |
21 } | |
22 | |
23 public bool TryGet (string name, out PropertyDescriptor descriptor) | |
24 { | |
25 return m_props.TryGetValue (name, out descriptor); | |
26 } | |
27 | |
28 public void DefineProperty(string name, PropertyDescriptor descriptor) { | |
29 | |
30 } | |
31 } | |
32 } | |
33 |