Table of Contents

Method RemoveElement

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

mutableLookup IDictionary<TKey, TCollection>

The lookup to modify.

key TKey

The key that the element should be removed from.

value TValue

The value that should be removed.

Returns

bool

Type Parameters

TKey
TValue
TCollection