一款简单易用的基础网络通讯组件库。

CollectionsExtensionAddOrUpdate 方法

重载列表

AddOrUpdateTKey, TValue(ConcurrentDictionaryTKey, TValue, TKey, TValue) 向 ConcurrentDictionary 中添加键值对,如果键已存在,则更新其值。
AddOrUpdateTKey, TValue(DictionaryTKey, TValue, TKey, TValue) 向字典中添加或更新指定键的值。

参见