Example #1
0
 public CursorEnumerator(CursorEnumerable <T> parent)
 {
     if (parent == null)
     {
         throw new ArgumentNullException("parent");
     }
     this.parent = parent;
     Reset();
 }
Example #2
0
 internal Enumerator(CursorEnumerable <T> parent, CancellationToken cancellationToken)
 {
     this.parent            = parent ?? throw new ArgumentNullException(nameof(parent));
     this.cancellationToken = cancellationToken;
     Reset();
 }
Example #3
0
 /// <summary>
 /// Release all resources associated with this enumerator
 /// </summary>
 public void Dispose()
 {
     _state = State.Disposed;
     SetComplete();
     parent = null;
 }
 void IDisposable.Dispose()
 {
     parent = null; state = State.Disposed;
 }
 public CursorEnumerator(CursorEnumerable <T> parent)
 {
     this.parent = parent ?? throw new ArgumentNullException(nameof(parent));
     Reset();
 }