Table of Contents

Interface IDictionaryList<K, T>

Namespace
Tlabs.Misc
Assembly
Tlabs.Core.dll

Dictionary of IEnumerable<T> of key type K.

public interface IDictionaryList<K, T> : IEnumerable<KeyValuePair<K, IEnumerable<T>>>, IEnumerable where K : notnull

Type Parameters

K
T
Inherited Members
Extension Methods

Properties

Count

Count of all values (of all enumerations).

int Count { get; }

Property Value

int

IsReadOnly

bool IsReadOnly { get; }

Property Value

bool

this[K]

The list (enumation) associated with key.

IEnumerable<T> this[K key] { get; set; }

Parameters

key K

Property Value

IEnumerable<T>

Keys

Read-only collection of keys.

IEnumerable<K> Keys { get; }

Property Value

IEnumerable<K>

Values

Read-only collection of all values (of all enumerations).

IEnumerable<T> Values { get; }

Property Value

IEnumerable<T>

Methods

Add(KeyValuePair<K, IEnumerable<T>>)

Add pair.

void Add(KeyValuePair<K, IEnumerable<T>> pair)

Parameters

pair KeyValuePair<K, IEnumerable<T>>

Add(K, T)

Add value to enumerable assocoated with key.

void Add(K key, T value)

Parameters

key K
value T

AddRange(K, IEnumerable<T>)

Add all values to enumerable assocoated with key.

void AddRange(K key, IEnumerable<T> values)

Parameters

key K
values IEnumerable<T>

Clear()

Clear.

void Clear()

Contains(T)

Checks whether item is contained in any enumerable.

bool Contains(T item)

Parameters

item T

Returns

bool

ContainsKey(K)

Checks whether key is assocoated with an enumerable.

bool ContainsKey(K key)

Parameters

key K

Returns

bool

Remove(K)

Returns true if enumerable assocoated with key was removed.

bool Remove(K key)

Parameters

key K

Returns

bool

Remove(K, T)

Returns true if value was rmoved from enumerable assocoated with key.

bool Remove(K key, T value)

Parameters

key K
value T

Returns

bool

TryGetValue(K, out IEnumerable<T>)

Try get value by key.

bool TryGetValue(K key, out IEnumerable<T> value)

Parameters

key K
value IEnumerable<T>

Returns

bool