Method ContainsElement
ContainsElement<TKey, TValue, TCollection>(IDictionary<TKey, TCollection>, TKey, TValue)
Queries if a certain value exists in a mutable lookup table
(E.g. Dictionary<Key,List<Value>>)
public static bool ContainsElement<TKey, TValue, TCollection>(this IDictionary<TKey, TCollection> mutableLookup, TKey key, TValue value) where TCollection : ICollection<TValue>
Parameters
mutableLookupIDictionary<TKey, TCollection>The lookup to query.
keyTKeyThe key to lookup.
valueTValueThe value to be searched.
Returns
Type Parameters
TKeyTValueTCollection