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
KT
- 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
keyK
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
pairKeyValuePair<K, IEnumerable<T>>
Add(K, T)
Add value to enumerable assocoated with key.
void Add(K key, T value)
Parameters
keyKvalueT
AddRange(K, IEnumerable<T>)
Add all values to enumerable assocoated with key.
void AddRange(K key, IEnumerable<T> values)
Parameters
keyKvaluesIEnumerable<T>
Clear()
Clear.
void Clear()
Contains(T)
Checks whether item is contained in any enumerable.
bool Contains(T item)
Parameters
itemT
Returns
ContainsKey(K)
Checks whether key is assocoated with an enumerable.
bool ContainsKey(K key)
Parameters
keyK
Returns
Remove(K)
Returns true if enumerable assocoated with key was removed.
bool Remove(K key)
Parameters
keyK
Returns
Remove(K, T)
Returns true if value was rmoved from enumerable assocoated with key.
bool Remove(K key, T value)
Parameters
keyKvalueT
Returns
TryGetValue(K, out IEnumerable<T>)
Try get value by key.
bool TryGetValue(K key, out IEnumerable<T> value)
Parameters
keyKvalueIEnumerable<T>