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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.