0
|
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
|