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. |
Value |
Gets a collection containing the value collections in the dictionary. |
Value |
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. |
Contains |
Returns a value indicating whether the dictionary contains the specified key. |
Contains |
Returns a value indicating whether any of the value collections in the dictionary contain the specified value. |
Get |
Gets the number of values in the dictionary associated with the specified key or zero if the key is not present. |
Try |
Gets the value collection for the specified key or null if the key was not found. |