Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Interface IReadOnlyKeyedCollection<TKey, TValue>

    Represents a read-only collection of values associated with a key.

    Inherited Members
    IGrouping<TKey, TValue>.Key
    IReadOnlyCollection<TValue>.Count
    IEnumerable<TValue>.GetEnumerator()
    Namespace: Singulink.Collections
    Assembly: Singulink.Collections.dll
    Syntax
    public interface IReadOnlyKeyedCollection<out TKey, out TValue> : IGrouping<TKey, TValue>, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IEnumerable
    Type Parameters
    Name Description
    TKey

    The type of the key associated with the collection.

    TValue

    The type of the values in the collection.

    Remarks

    This interface extends IGrouping<TKey, TElement> with the additional Count property, allowing keyed collections to be used directly with LINQ operators that produce or consume IGrouping<TKey, TElement> sequences (such as GroupBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) and ToLookup<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)).

    Extension Methods

    CollectionExtensions.ToComparerEquatableArray<T>(IEnumerable<T>, IEqualityComparer<T>?)
    CollectionExtensions.ToEquatableArray<T>(IEnumerable<T>)
    © Singulink. All rights reserved.