ContainsAnyKeys<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey[]) Method
Determines whether the dictionary contains all the specified keys.
Namespace
Statiq.Common
Containing Type
IReadOnlyDictionaryExtensions

Syntax

public static bool ContainsAnyKeys<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.