コード例 #1
0
 protected virtual void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         treeEnumerator.Dispose();
         treeEnumerator = null;
     }
 }
コード例 #2
0
 /// <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);
 }