protected virtual void Dispose(bool isDisposing) { if (isDisposing) { treeEnumerator.Dispose(); treeEnumerator = null; } }
/// <summary> /// Initalizes the enumerator and attaches it to the collection. /// </summary> /// <param name="collection">The parent collection to enumerate.</param> public GenericBinaryTreeCollectionEnumerator(GenericBinaryTreeCollection <V> collection) { treeEnumerator = new GenericTreeTableEnumerator <V>(collection.InternalTable); }