DictionaryExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Not recommended for external use.
Extension methods for IDictionary<TKey,TValue> class.
[System.Obsolete("Not recommended for external use.")]
public static class DictionaryExtensions
[<System.Obsolete("Not recommended for external use.")>]
type DictionaryExtensions = class
Public Module DictionaryExtensions
- Inheritance
-
DictionaryExtensions
- Attributes
Methods
GetOrAddNonNull<TKey,TValue>(ConcurrentDictionary<TKey,TValue>, TKey, Func<TKey,TValue>) |
Gets or adds the value associated with specified key. |
GetValueOrAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, Func<TKey,TValue>) |
Gets or adds the value associated with specified key. |
GetValueOrDefault<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) |
Gets the value associated with specified key. |
TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue) |
Removes the value associated with specified key. |
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET