protected virtual void Dispose(bool disposing) { if (disposing) { pager = null; } }
public PageEnumerator(ListPager <TType> pager, int pageIndex) { pageIndex = Math.Min(pageIndex, pager.PageCount); this.pager = pager; this.start = pager.PageStartAt(pageIndex); this.stop = pager.PageEndAt(pageIndex); this.current = this.start - 1; }