Share via


DictionaryExtensions.FirstNotNullOrDefault<TKey, TValue> Method (IDictionary<TKey, TValue>,  TKey[])

 

Applies To: Dynamics CRM 2015

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

  • 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

Return to top

© 2017 Microsoft. All rights reserved. Copyright