Beispiel #1
0
 internal Enumerator(AttachObjectList outer, int category = -1,
                     AttachObjectPhase phase = AttachObjectPhase.Any)
 {
     this.outer    = outer;
     this.category = category;
     this.phase    = phase;
     currentIndex  = -1;
 }
Beispiel #2
0
        public int Count(int category = -1, AttachObjectPhase phase = AttachObjectPhase.Any)
        {
            int        c = 0;
            Enumerator e = GetEnumerator(category, phase);

            while (e.MoveNext())
            {
                c++;
            }
            return(c);
        }
Beispiel #3
0
 public Enumerator GetEnumerator(int category = -1, AttachObjectPhase phase = AttachObjectPhase.Any)
 {
     return(new Enumerator(this, category, phase));
 }