示例#1
0
 /// <summary>
 /// Sets the enumerator to its initial position, which is before the first element in the collection.
 /// </summary>
 /// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception>
 public void Reset()
 {
     // We can safely dispose of the additional enumerator because if the client reuses this enumerator
     // we'll acquire a new one anyway (and so for that matter we should be sure to dispose of this).
     _additionalEnumerator.Dispose();
     _currentPosition = Position.BeforeFirst;
 }
示例#2
0
 /// <summary>
 /// Sets the enumerator to its initial position, which is before the first element in the collection.
 /// </summary>
 /// <exception cref="InvalidOperationException">The collection was modified after the enumerator was created. </exception>
 public void Reset()
 {
     this.ThrowIfDisposed();
     _additionalEnumerator.Dispose();
     _currentPosition = Position.BeforeFirst;
 }