Table of Contents

Class ListDictionary<TKey, TValue>

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public class ListDictionary<TKey, TValue> : Dictionary<TKey, List<TValue>>, IDictionary<TKey, List<TValue>>, ICollection<KeyValuePair<TKey, List<TValue>>>, IReadOnlyDictionary<TKey, List<TValue>>, IReadOnlyCollection<KeyValuePair<TKey, List<TValue>>>, IEnumerable<KeyValuePair<TKey, List<TValue>>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable

Type Parameters

TKey
TValue
Inheritance
Dictionary<TKey, List<TValue>>
ListDictionary<TKey, TValue>
Implements
IDictionary<TKey, List<TValue>>
ICollection<KeyValuePair<TKey, List<TValue>>>
IReadOnlyDictionary<TKey, List<TValue>>
IEnumerable<KeyValuePair<TKey, List<TValue>>>
Inherited Members
Extension Methods

Constructors

ListDictionary()

public ListDictionary()

ListDictionary(IDictionary<TKey, List<TValue>>)

public ListDictionary(IDictionary<TKey, List<TValue>> dictionary)

Parameters

dictionary IDictionary<TKey, List<TValue>>

ListDictionary(IDictionary<TKey, List<TValue>>, IEqualityComparer<TKey>)

public ListDictionary(IDictionary<TKey, List<TValue>> dictionary, IEqualityComparer<TKey> comparer)

Parameters

dictionary IDictionary<TKey, List<TValue>>
comparer IEqualityComparer<TKey>

ListDictionary(IEqualityComparer<TKey>)

public ListDictionary(IEqualityComparer<TKey> comparer)

Parameters

comparer IEqualityComparer<TKey>

ListDictionary(int)

public ListDictionary(int capacity)

Parameters

capacity int

ListDictionary(int, IEqualityComparer<TKey>)

public ListDictionary(int capacity, IEqualityComparer<TKey> comparer)

Parameters

capacity int
comparer IEqualityComparer<TKey>

Methods

Add(TKey, TValue)

public void Add(TKey key, TValue value)

Parameters

key TKey
value TValue

ClearKey(TKey)

public void ClearKey(TKey key)

Parameters

key TKey

ContainsValue(TKey, TValue)

public bool ContainsValue(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

bool

ContainsValue(TValue)

public bool ContainsValue(TValue value)

Parameters

value TValue

Returns

bool

GetEquivalent(TKey, TValue)

public TValue GetEquivalent(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

TValue

GetKeyOfValue(TValue)

public TKey GetKeyOfValue(TValue value)

Parameters

value TValue

Returns

TKey

Remove(TKey, TValue)

public bool Remove(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

bool

Remove(TValue)

public bool Remove(TValue value)

Parameters

value TValue

Returns

bool