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

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);

  

猜你喜欢

转载自www.cnblogs.com/zitjubiz/p/11211911.html
今日推荐