标签:
将List<string> srcDocCode的数据按照20一组拆分。
List<List<string>> listGroup = new List<List<string>>(); int j = 20; for (int i = 0; i < srcDocCode.Count; i += 20) { List<string> cList = new List<string>(); cList = srcDocCode.Take(j).Skip(i).ToList(); j += 20; listGroup.Add(cList); }
标签:
原文地址:http://www.cnblogs.com/shijunzhang/p/4485829.html