Interface ICollectionDictionary<TKey, TValue, TValueCollection>
Represents a collection of keys mapped to a collection of values per key.
Inherited Members
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public interface ICollectionDictionary<TKey, TValue, TValueCollection> : IReadOnlyCollection<KeyValuePair<TKey, TValueCollection>>, IEnumerable<KeyValuePair<TKey, TValueCollection>>, IEnumerable where TValueCollection : class, ICollection<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 value collection associated with each key. | 
Properties
| Name | Description | 
|---|---|
| this[TKey] | Gets the 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. | 
| Keys | Gets a collection containing the keys in the dictionary. | 
| ValueCollections | Gets a collection containing the value collections in the dictionary. | 
| ValueCount | Gets the number of values in the dictionary across all keys. | 
| Values | Gets a collection containing all the values in the dictionary across all the keys. | 
Methods
| Name | Description | 
|---|---|
| Clear() | Clears all keys and values from the dictionary and associated value collections. | 
| Clear(TKey) | Clears the values in the collection associated with the specified key and removes the key from the dictionary. | 
| Contains(TKey, TValue) | Returns a value indicating whether the specified key and associated value are present in the dictionary. | 
| ContainsKey(TKey) | Returns a value indicating whether the dictionary contains the specified key. | 
| ContainsValue(TValue) | Returns a value indicating whether any of the value collections in the dictionary contain the specified value. | 
| GetValueCount(TKey) | Gets the number of values in the dictionary associated with the specified key or zero if the key is not present. | 
| TryGetValues(TKey, out TValueCollection) | Gets the value collection for the specified key or null if the key was not found. | 
