Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Struct ListDictionary<TKey, TValue>.AlternateLookup<TAlternateKey>

    Provides an alternate lookup that can be used to perform operations on a ListDictionary<TKey, TValue> using TAlternateKey instead of TKey.

    Namespace: Singulink.Collections
    Assembly: Singulink.Collections.dll
    Syntax
    public readonly struct ListDictionary<TKey, TValue>.AlternateLookup<TAlternateKey> where TAlternateKey : notnull, allows ref struct
    Type Parameters
    Name Description
    TAlternateKey

    Properties

    Name Description
    Comparer

    Gets the equality comparer used to compare keys in the alternate lookup.

    Dictionary

    Gets the underlying dictionary associated with this alternate lookup.

    this[TAlternateKey]

    Gets the value list associated with the specified alternate 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.

    Methods

    Name Description
    Clear(TAlternateKey)

    Clears the values in the list associated with the specified alternate key and removes the key from the dictionary.

    Clear(TAlternateKey, out TKey)

    Clears the values in the list associated with the specified alternate key and removes the key from the dictionary.

    Contains(TAlternateKey, TValue)

    Returns a value indicating whether the specified alternate key and associated value are present in the dictionary.

    Contains(TAlternateKey, TValue, out TKey)

    Returns a value indicating whether the specified alternate key and associated value are present in the dictionary.

    ContainsKey(TAlternateKey)

    Returns a value indicating whether the dictionary contains the specified alternate key.

    ContainsKey(TAlternateKey, out TKey)

    Returns a value indicating whether the dictionary contains the specified alternate key.

    GetValueCount(TAlternateKey)

    Gets the number of values in the dictionary associated with the specified alternate key or zero if the key is not present.

    TryGetValues(TAlternateKey, out ValueList)

    Gets the value list for the specified alternate key or null if the key was not found.

    TryGetValues(TAlternateKey, out TKey, out ValueList)

    Gets the value list for the specified alternate key or null if the key was not found.

    © Singulink. All rights reserved.