Compartilhar via


GeneralUtilities.GetValueOrDefault<K,V> Method

Definition

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

Applies to