Table of Contents

Method AddElement

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

mutableLookup IDictionary<TKey, TCollection>

The lookup to modify.

key TKey

The key that the element should be added to.

value TValue

The value that should be added.

Type Parameters

TKey
TValue
TCollection