例如:ip
List<string> list = new List<string>();string
list.Take(50).ToList();//取前50條List
list.Skip(10).Take(30).ToList();//跳過List前10條,而後取接下來的30條new
示例代碼:
List<string> listAll = new List<string>();//總List
List<string> listSub = new List<string>();//子List
for (int i = 0; i < lAll.Count; i += 1000)
{
listSub = listAll.Skip(i).Take(1000).ToList();//每1000個元素取一次
}