class A{public int i;public bool b;}List<A> temp=new List<A>();temp.add(new A());temp.add(new A());temp.add(new A());這里想 給temp 中的所有對象 的b統一賦值為false 或者true ,我想用不用遍歷能不能直接通過表達式直接賦值
- 2 回答
- 0 關注
- 1534 瀏覽
添加回答
舉報
0/150
提交
取消