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

2023-05-19,,

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

  

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.doc》

下载本文的Word格式文档,以方便收藏与打印。