Method RemoveElement
RemoveElement<TKey, TValue, TCollection>(IDictionary<TKey, TCollection>, TKey, TValue)
Removes an element from a mutable lookup table
(E.g. Dictionary<Key,List<Value>>)
public static bool RemoveElement<TKey, TValue, TCollection>(this IDictionary<TKey, TCollection> mutableLookup, TKey key, TValue value) where TCollection : ICollection<TValue>, new()
Parameters
mutableLookupIDictionary<TKey, TCollection>The lookup to modify.
keyTKeyThe key that the element should be removed from.
valueTValueThe value that should be removed.
Returns
Type Parameters
TKeyTValueTCollection