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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för