public object Pop() { object it = this.head.it; this.head = this.head.next; --this.count; return(it); }
private void Add0(ObjectList.Link a) { if (this.head == null) { this.head = this.last = a; } else { this.last = this.last.next = a; } }
private object Get0(ObjectList.Link a, int x) { if (a == null || x < 0) { return((object)null); } if (x == 0) { return(a.it); } return(this.Get0(a.next, x - 1)); }
internal Link(object o, ObjectList.Link x) { this.it = o; this.next = x; }
public void Push(object o) { this.head = new ObjectList.Link(o, this.head); ++this.count; }
public void Reset() { this.cur = (ObjectList.Link)null; }
public bool MoveNext() { this.cur = this.cur != null ? this.cur.next : this.list.head; return(this.cur != null); }