Property this
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
public HashSetDictionary<TKey, TValue>.ValueSet this[TKey key] { get; }
Parameters
Type | Name | Description |
---|---|---|
TKey | key |
Property Value
Type | Description |
---|---|
HashSetDictionary<TKey, TValue>.ValueSet |
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.