Extension.FirstNotNullOrEmpty<TKey> Method

Definition

Extension to get the first item in a dictionary if the dictionary contains the key.

public:
generic <typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::String ^ FirstNotNullOrEmpty(System::Collections::Generic::IDictionary<TKey, System::String ^> ^ dictionary, ... cli::array <TKey> ^ keys);
public static string FirstNotNullOrEmpty<TKey> (this System.Collections.Generic.IDictionary<TKey,string> dictionary, params TKey[] keys);
static member FirstNotNullOrEmpty : System.Collections.Generic.IDictionary<'Key, string> * 'Key[] -> string
<Extension()>
Public Function FirstNotNullOrEmpty(Of TKey) (dictionary As IDictionary(Of TKey, String), ParamArray keys As TKey()) As String

Type Parameters

TKey

Type to return

Parameters

dictionary
IDictionary<TKey,String>

Dictionary to search

keys
TKey[]

Collection of Keys to find.

Returns

Applies to