区块链系统之家

关注最新技术动态

2013年1月16日

c#字典Dictionary循环Remove自减时注意不能用foreach

摘要: 字典Dictionary循环Remove自减时注意不能用foreach,否则会导致循环的时候自己的数量在变化,导致报错, 未解决此问题,需要用for 测试,初始化字典时候,添加2个list,各8个item 编码实现 ConcurrentDictionary<int, List<int>> dic = new ConcurrentDictionary<int, List<int>>()... 阅读全文

posted @ 2013-01-16 14:53 新技术动态 阅读(4714) 评论(0) 推荐(0) 编辑

导航