Extension.FirstNotNullOrEmpty<TKey> 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.
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.