internal Enumerator(ArrayStack <T> stack) { this.elements = stack.elements; this.index = stack.Count; }