廢話不說只有代碼:
PagedList<T> : List<T> Properties PageIndex { ; PageSize { ; TotalCount { ; TotalPages { ; { (PageIndex > { (PageIndex + < Constructors PagedList(IQueryable<T> source, pageIndex, (source == || source.Count() < System.ArgumentNullException( total = .TotalCount = .TotalPages = total / (total % pageSize > TotalPages++ .PageSize = .PageIndex = .AddRange(source.Skip(pageIndex * PagedList(IList<T> source, pageIndex, (source == || source.Count() < System.ArgumentNullException( TotalCount = TotalPages = TotalCount / (TotalCount % pageSize > TotalPages++ .PageSize = .PageIndex = .AddRange(source.Skip(pageIndex * PagedList(IEnumerable<T> source, pageIndex, pageSize, (source == || source.Count() < System.ArgumentNullException( TotalCount = TotalPages = TotalCount / (TotalCount % pageSize > TotalPages++ .PageSize = .PageIndex = }