This repository was archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
System.Collections.Generic.DictionaryExtensions.GetValueOrDefault
Morten Aune Lyrstad edited this page Apr 16, 2022
·
26 revisions
← Index ← Namespace Index ← DictionaryExtensions
public static V GetValueOrDefault<K, V>(this Dictionary<K, V> dictionary, K key)
- Dictionary<K, V> dictionary
- K key
public static V GetValueOrDefault<K, V>(this Dictionary<K, V> dictionary, K key, V defaultValue)
- Dictionary<K, V> dictionary
- K key
- V defaultValue
public static V GetValueOrDefault<K, V>(this ConcurrentDictionary<K, V> dictionary, K key, V defaultValue)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!