Interface IReadOnlyCollectionDictionary<TKey, TValue, TValueCollection>
Represents a read-only collection of keys mapped to a read-only collection of values per key.
Inherited Members
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public interface IReadOnlyCollectionDictionary<TKey, TValue, TValueCollection> : IReadOnlyCollection<KeyValuePair<TKey, TValueCollection>>, IEnumerable<KeyValuePair<TKey, TValueCollection>>, IEnumerable where TValueCollection : class, IReadOnlyCollection<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 read-only 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 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 |
|---|---|
| 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. |