Method AddElement
AddElement<TKey, TValue, TCollection>(IDictionary<TKey, TCollection>, TKey, TValue)
Adds an element to a mutable lookup table
(E.g. Dictionary<Key,List<Value>>)
public static void AddElement<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 added to.
valueTValueThe value that should be added.
Type Parameters
TKeyTValueTCollection