即完成以下工作 for (int i = list1.Count; i <n; i++) { IsBankFree.Add(...); }
1 回答
![?](http://img1.sycdn.imooc.com/54584ee0000179f302200220-100-100.jpg)
Smart猫小萌
TA贡献1911条经验 获得超7个赞
用AddRange这个方法,详见:
//
// 摘要:
// 将指定集合的元素添加到 System.Collections.Generic.List<T> 的末尾。
//
// 参数:
// collection:
// 一个集合,其元素应被添加到 System.Collections.Generic.List<T> 的末尾。集合自身不能为 null,但它可以包含为
// null 的元素(如果类型 T 为引用类型)。
//
// 异常:
// System.ArgumentNullException:
// collection 为 null。
public void AddRange(IEnumerable<T> collection);
添加回答
举报
0/150
提交
取消