Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         pager = null;
     }
 }
Exemple #2
0
 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;
 }