Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Property this

    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.

    Declaration
    TValueCollection this[TKey key] { get; }
    Parameters
    Type Name Description
    TKey key
    Property Value
    Type Description
    TValueCollection
    Remarks

    Empty value collections, such as new collections 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 collection becomes empty again, it is removed from the dictionary. Value collections stay synchronized with their dictionary to always reflect the values associated with their key inside the dictionary.

    © Singulink. All rights reserved.