Interface IGrouping<TObject, TKey, TGroupKey>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Represents a group which provides an update after any value within the group changes.
public interface IGrouping<TObject, TKey, out TGroupKey> where TObject : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
TGroupKey
The type of the group key.
Properties
Count
Gets the count.
int Count { get; }
Property Value
Items
Gets the items.
IEnumerable<TObject> Items { get; }
Property Value
- IEnumerable<TObject>
Key
Gets the group key.
TGroupKey Key { get; }
Property Value
- TGroupKey
KeyValues
Gets the items together with their keys.
IEnumerable<KeyValuePair<TKey, TObject>> KeyValues { get; }
Property Value
- IEnumerable<KeyValuePair<TKey, TObject>>
The key values.
Keys
Gets the keys.
IEnumerable<TKey> Keys { get; }
Property Value
- IEnumerable<TKey>
Methods
Lookup(TKey)
Lookup a single item using the specified key.
Optional<TObject> Lookup(TKey key)
Parameters
key
TKeyThe key.
Returns
- Optional<TObject>
The value that is looked up.
Remarks
Fast indexed lookup.