C#基础篇:解决InvalidOperationException: Operation is not valid due to the current state of the object

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_15020543/article/details/84932210

情况分以下几种,不定时更新

1.在遍历字典时执行了移除其中元素的操作

解决办法

对元素执行操作之后退出循环

2.//TODO

猜你喜欢

转载自blog.csdn.net/qq_15020543/article/details/84932210
今日推荐