摘要:
ConcurrentDictionary的ContainsKey 保证了多线程读取、写入没问题,线程安全。但是并不能保证Key 重复 。这里多线程的时候,Key可能重复导致Add失败,请优先使用 AddOrUpdate 。 using System; using System.Collections 阅读全文
posted @ 2021-04-28 12:05
特洛伊-Micro
阅读(469)
评论(0)
推荐(0)
浙公网安备 33010602011771号