CollectionsExtension 类
CollectionsExtension
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
public static class CollectionsExtension
<ExtensionAttribute>
Public NotInheritable Class CollectionsExtension
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type CollectionsExtension = class end
- Inheritance
- Object CollectionsExtension
| AddOrUpdateTKey, TValue(ConcurrentDictionaryTKey, TValue, TKey, TValue) |
向 ConcurrentDictionary 中添加键值对,如果键已存在,则更新其值。
|
| AddOrUpdateTKey, TValue(DictionaryTKey, TValue, TKey, TValue) |
向字典中添加或更新指定键的值。
|
| ClearT |
清空并发队列并执行指定操作。
|
| ForEachT |
循环遍历每个元素,执行Action动作
|
| ForEachAsyncT |
循环遍历每个元素,执行异步动作
|
| GetValueTKey, TValue |
获取字典中与指定键关联的值。
|
| RemoveWhenTKey, TValue |
移除满足条件的项目。
|
| TryRemoveTKey, TValue |
尝试从字典中移除指定键的值。
|