public DynamicArrayEnumerator(DynamicArray <T> arr) { Collection = arr; curIndex = -1; curElem = default(T); }