DDDD

  if (list != null && list.Count > 0)
            {
                result =
                    new List<Object>(){
                    new
                    {
                        PageCount = list.Count,
                        List = from s in list.Skip(pageSize * (pageIndex - 1)).Take(pageSize).OrderBy(p=>p.SupplierName)
                               select new { Name = s.SupplierName,Id = s.SupplierId}
                    }
                };
            }

原文地址:https://www.cnblogs.com/sisiblog/p/3208762.html