随笔 - 290  文章 - 10  评论 - 85  2

InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.

异常代码如下:

                if (!keyValueFeeCategories.ContainsKey(item.ProjectId + item.Category))
                    keyValueFeeCategories.Add(item.ProjectId + item.Category, item.TotalAmount);

  

posted on 2019-07-19 10:49  Gu  阅读(...)  评论(...编辑  收藏