Table of Contents

Struct EventGrouping<TKey, TEvent>

Namespace
LfrlAnvil.Reactive.Composites
Assembly
LfrlAnvil.Reactive.Core.dll

Represents a group of events associated with the same key.

public readonly struct EventGrouping<TKey, TEvent>

Type Parameters

TKey

Key type.

TEvent

Event type.

Inherited Members

Constructors

EventGrouping(TKey, TEvent, ReadOnlyMemory<TEvent>)

Creates a new EventGrouping<TKey, TEvent> instance.

public EventGrouping(TKey key, TEvent @event, ReadOnlyMemory<TEvent> allEvents)

Parameters

key TKey

Group's key.

event TEvent

Underlying event that was added last to the group.

allEvents ReadOnlyMemory<TEvent>

All underlying events associated with the key.

Properties

AllEvents

All underlying events associated with the Key.

public ReadOnlyMemory<TEvent> AllEvents { get; }

Property Value

ReadOnlyMemory<TEvent>

Event

Underlying event that was added last to the group.

public TEvent Event { get; }

Property Value

TEvent

Key

Group's key.

public TKey Key { get; }

Property Value

TKey

Methods

ToString()

Returns a string representation of this EventGrouping<TKey, TEvent> instance.

[Pure]
public override string ToString()

Returns

string

String representation.