Determines whether the dictionary contains all the specified keys.
Syntax
public static bool ContainsKeys<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, params TKey[] keys)
Type Parameters
Name |
Description |
TKey |
The type of keys. |
TValue |
The type of values. |
Parameters
Name |
Type |
Description |
dictionary |
IReadOnlyDictionary<TKey, TValue> |
The dictionary to verify. |
keys |
TKey[] |
The keys that must be present in the dictionary. |
Return Value
Type |
Description |
bool |
true if the dictionary contains all the specified keys, false otherwise. |