コード例 #1
0
        public static PagedList <T> BuildFromCompleteList(List <T> allItems)
        {
            var result = new PagedList <T>
            {
                PageItems        = allItems,
                _paginationStats = PaginationStats.SinglePage(allItems.Count)
            };

            return(result);
        }
コード例 #2
0
 public PagedList(List <T> allItems)
 {
     PageItems        = allItems;
     _paginationStats = PaginationStats.SinglePage(allItems.Count);
 }