public CursorEnumerator(CursorEnumerable <T> parent) { if (parent == null) { throw new ArgumentNullException("parent"); } this.parent = parent; Reset(); }
internal Enumerator(CursorEnumerable <T> parent, CancellationToken cancellationToken) { this.parent = parent ?? throw new ArgumentNullException(nameof(parent)); this.cancellationToken = cancellationToken; Reset(); }
/// <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(); }