Freigeben über


Extensions.GetOrNull<TKey,TValue> Method

Definition

public static TValue GetOrNull<TKey,TValue> (this System.Collections.Generic.IDictionary<TKey,TValue> dictionary, TKey key) where TValue : class;
static member GetOrNull : System.Collections.Generic.IDictionary<'Key, 'Value (requires 'Value : null)> * 'Key -> 'Value (requires 'Value : null)
<Extension()>
Public Function GetOrNull(Of TKey, TValue) (dictionary As IDictionary(Of TKey, TValue), key As TKey) As TValue

Type Parameters

TKey
TValue

Parameters

dictionary
IDictionary<TKey,TValue>
key
TKey

Returns

TValue

Applies to