调用接口,分批方法:
double num = Math.Ceiling((double)views.Count / (double)pageSize);
List<List<TViewModel>> list = new List<List<TViewModel>>();
for (int i = 0; (double)i < num; i++)
{
List<TViewModel> item = views.Skip(i * pageSize).Take(pageSize).ToList();
list.Add(item);
}
return list;
标签:调用,pageSize,分批,List,接口,list,double From: https://www.cnblogs.com/csj007523/p/16954815.html