Property IReadOnlyDictionary<TKey, ISet<TValue>>.this
IReadOnlyDictionary<TKey, ISet<TValue>>.this[TKey]
Gets the value list associated with the specified key. If the key is not found then a new value list is returned which can be used to add values to the key or to monitor when items are added to the key.
Declaration
ISet<TValue> IReadOnlyDictionary<TKey, ISet<TValue>>.this[TKey key] { get; }
Parameters
Type | Name | Description |
---|---|---|
TKey | key |
Returns
Type | Description |
---|---|
ISet<TValue> |
Implements
Remarks
Empty value sets, such as new sets returned using this indexer when the key is not found, are not part of the dictionary until items are added to them. When the value set becomes empty again, it is removed from the dictionary. Value sets stay synchronized with their dictionary to always reflect the values associated with their key inside the dictionary.