CollectionsExtension 类
CollectionsExtension
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
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 |
尝试从字典中移除指定键的值。
|