2using System.Collections;
3using System.Threading.Tasks;
13 private readonly
int count0;
23 this.e = ItemEnumerator;
24 this.count = this.count0 = Count;
48 if (this.count <= 0 || !await this.e.MoveNextAsync())
61 this.count = this.count0;
Enumerator that limits the return set to a maximum number of records.
bool MoveNext()
IEnumerator.MoveNext
MaxCountEnumerator(IResultSetEnumerator ItemEnumerator, int Count)
Enumerator that limits the return set to a maximum number of records.
void Reset()
IEnumerator.Reset
object Current
IEnumerator.Current
async Task< bool > MoveNextAsync()
Advances the enumerator to the next element of the collection.
Interface for result-set enumerators.