internal Enumerator(AttachObjectList outer, int category = -1, AttachObjectPhase phase = AttachObjectPhase.Any) { this.outer = outer; this.category = category; this.phase = phase; currentIndex = -1; }
public int Count(int category = -1, AttachObjectPhase phase = AttachObjectPhase.Any) { int c = 0; Enumerator e = GetEnumerator(category, phase); while (e.MoveNext()) { c++; } return(c); }
public Enumerator GetEnumerator(int category = -1, AttachObjectPhase phase = AttachObjectPhase.Any) { return(new Enumerator(this, category, phase)); }