Interface IDictionaryList<K, T>
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
IsReadOnly
bool IsReadOnly { get; }
Property Value
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
Kvalue
T
AddRange(K, IEnumerable<T>)
Add all values
to enumerable assocoated with key
.
void AddRange(K key, IEnumerable<T> values)
Parameters
key
Kvalues
IEnumerable<T>
Clear()
Clear.
void Clear()
Contains(T)
Checks whether item
is contained in any enumerable.
bool Contains(T item)
Parameters
item
T
Returns
ContainsKey(K)
Checks whether key
is assocoated with an enumerable.
bool ContainsKey(K key)
Parameters
key
K
Returns
Remove(K)
Returns true if enumerable assocoated with key
was removed.
bool Remove(K key)
Parameters
key
K
Returns
Remove(K, T)
Returns true if value
was rmoved from enumerable assocoated with key
.
bool Remove(K key, T value)
Parameters
key
Kvalue
T
Returns
TryGetValue(K, out IEnumerable<T>)
Try get value
by key
.
bool TryGetValue(K key, out IEnumerable<T> value)
Parameters
key
Kvalue
IEnumerable<T>