DictionaryExtensions.FirstNotNullOrDefault<TKey, TValue> Method (IDictionary<TKey, TValue>, TKey[])
Applies To: Dynamics CRM 2013
Namespace: Microsoft.Xrm.Client.Collections.Generic
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static TValue FirstNotNullOrDefault<TKey, TValue>(
this IDictionary<TKey, TValue> dictionary,
params TKey[] keys
)
public:
generic<typename TKey, typename TValue>
[ExtensionAttribute]
static TValue FirstNotNullOrDefault(
IDictionary<TKey, TValue>^ dictionary,
... array<TKey>^ keys
)
static member FirstNotNullOrDefault<'TKey, 'TValue> :
dictionary:IDictionary<'TKey, 'TValue> *
[<ParamArrayAttribute>] keys:'TKey[] -> 'TValue
<ExtensionAttribute>
Public Shared Function FirstNotNullOrDefault(Of TKey, TValue) (
dictionary As IDictionary(Of TKey, TValue),
ParamArray keys As TKey()
) As TValue
Parameters
dictionary
Type: System.Collections.Generic.IDictionary<TKey, TValue>Type: IDictionary<TKey, TValue>. The dictionary.
keys
Type: TKey[]Type: TKeys[]. An array of keys.
Return Value
Type: TValue
Type: TValue
The entry that is not null or a default value.
Type Parameters
- TKey
The key.
- TValue
The value.
See Also
DictionaryExtensions Class
Microsoft.Xrm.Client.Collections.Generic Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top