public TreeEnumerator(Tree t, Node n) { tree = t; mods = t.m_modCount; // foreach calls MoveNext before starting. Create a dummy node before the first one. current = new Node(null, null, null) {right = First(n)}; }
public TreeEnumerator(Tree t) : this(t, t.m_root) { }