public IEnumerator <T> GetEnumerator() { if (this.enumerator == null) { this.enumerator = new LazyEnumerator <T>(this.siaqodb, oids); } return(this.enumerator); }
public async Task <IList <T> > ToListAsync() { List <int> oids = this.SortAndGetOids(); IObjectList <T> list = new ObjectList <T>(); ISqoAsyncEnumerator <T> asyncEnum = new LazyEnumerator <T>(this.siaqodb, oids); while (await asyncEnum.MoveNextAsync()) { list.Add(asyncEnum.Current); } return(list); }
public LazySqoQuery(LazyEnumerator <T> enumerator) { this.enumerator = enumerator; }