Interface IReadOnlyKeyedCollection<TKey, TValue>
Represents a read-only collection of values associated with a key.
Inherited Members
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>)).