public InstanceProperty Clone() { InstanceProperty property = new InstanceProperty(this.m, this.TypeId); property.Field_Info = this.Field_Info; property.Value = this.Value; return property; }
internal ObjectObject CreateObject() { ObjectObject obj2 = new ObjectObject(base.Scripter, this); ClassObject obj3 = this; while (true) { for (int i = 0; i < obj3.Members.Count; i++) { MemberObject m = obj3.Members[i]; if ((m.Kind == MemberKind.Field) && !m.Static) { InstanceProperty p = new InstanceProperty(m, obj3.Id); obj2.Properties.Add(p); if (m.Imported) { FieldObject obj5 = (FieldObject)m; p.Field_Info = obj5.Field_Info; } } } ClassObject ancestorClass = obj3.AncestorClass; if (ancestorClass == null) { return obj2; } obj3 = ancestorClass; } }
public int Add(InstanceProperty p) { this.items.AddObject(p.NameIndex, p); return this.Count; }