Table of Contents

Method ContainsElement

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

mutableLookup IDictionary<TKey, TCollection>

The lookup to query.

key TKey

The key to lookup.

value TValue

The value to be searched.

Returns

bool

Type Parameters

TKey
TValue
TCollection