GetPropertyEnumerator() private method

private GetPropertyEnumerator ( ArrayList enums, ArrayList objects ) : void
enums System.Collections.ArrayList
objects System.Collections.ArrayList
return void
Beispiel #1
0
        internal virtual void GetPropertyEnumerator(ArrayList enums, ArrayList objects)
        {
            MemberInfo[] members = this.GetMembers(BindingFlags.Instance | BindingFlags.Public);
            if (members.Length > 0)
            {
                enums.Add(members.GetEnumerator());
                objects.Add(this);
            }
            ScriptObject parent = this.GetParent();

            if (parent != null)
            {
                parent.GetPropertyEnumerator(enums, objects);
            }
        }
        internal override void GetPropertyEnumerator(ArrayList enums, ArrayList objects)
        {
            FieldInfo[] fields = this.GetFields(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
            if (fields.Length > 0)
            {
                enums.Add(fields.GetEnumerator());
                objects.Add(this);
            }
            ScriptObject parent = this.GetParent();

            if (parent != null)
            {
                parent.GetPropertyEnumerator(enums, objects);
            }
        }
Beispiel #3
0
 internal ScriptObjectPropertyEnumerator(ScriptObject obj)
 {
     obj.GetPropertyEnumerator(this.enumerators = new ArrayList(), this.objects = new ArrayList());
     this.index         = 0;
     this.visited_names = new SimpleHashtable(16);
 }
 internal ScriptObjectPropertyEnumerator(ScriptObject obj){
   obj.GetPropertyEnumerator(this.enumerators = new ArrayList(), this.objects = new ArrayList());
   this.index = 0;
   this.visited_names = new SimpleHashtable(16);
 }