Extensions.GetOrNull<TKey,TValue> 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 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