Interface ICollectionDictionary<TKey, TValue, TValueCollection>
Represents a collection of keys mapped to a keyed collection of values per key.
Inherited Members
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public interface ICollectionDictionary<TKey, TValue, TValueCollection> : IReadOnlyCollectionDictionary<TKey, TValue, TValueCollection>, IReadOnlyCollectionDictionaryBase<TKey, TValue> where TValueCollection : class, IKeyedCollection<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the keys in the dictionary. |
| TValue | The type of the values in the dictionary. |
| TValueCollection | The type of the keyed value collection associated with each key. |
Properties
| Name | Description |
|---|---|
| this[TKey] | Gets the keyed value collection associated with the specified key. If the key is not found then a new value collection is returned which can be used to add values to the key or to monitor when items are added to the key. |
Methods
| Name | Description |
|---|---|
| Clear() | Removes all keys and values from the dictionary and associated value collections. |
| Clear(TKey) | Removes the values in the collection associated with the specified key and removes the key from the dictionary. |