GeneralUtilities.GetValueOrDefault<K,V> Method
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.
public static V GetValueOrDefault<K,V> (this System.Collections.Generic.IDictionary<K,V> dictionary, K key, V defaultValue);
static member GetValueOrDefault : System.Collections.Generic.IDictionary<'K, 'V> * 'K * 'V -> 'V
<Extension()>
Public Function GetValueOrDefault(Of K, V) (dictionary As IDictionary(Of K, V), key As K, defaultValue As V) As V
Type Parameters
- K
- V
Parameters
- dictionary
- IDictionary<K,V>
- key
- K
- defaultValue
- V
Returns
V