Table of Contents

Interface IReadOnlyCollectionVariable<TKey, TElement>

Namespace
LfrlAnvil.Reactive.State
Assembly
LfrlAnvil.Reactive.State.dll

Represents a generic read-only collection variable.

public interface IReadOnlyCollectionVariable<TKey, TElement> : IReadOnlyCollectionVariable, IVariableNode where TKey : notnull where TElement : notnull

Type Parameters

TKey

Key type.

TElement

Element type.

Inherited Members
Extension Methods

Properties

Elements

Current collection of elements.

ICollectionVariableElements<TKey, TElement> Elements { get; }

Property Value

ICollectionVariableElements<TKey, TElement>

InitialElements

Initial collection of elements.

IReadOnlyDictionary<TKey, TElement> InitialElements { get; }

Property Value

IReadOnlyDictionary<TKey, TElement>

KeySelector

Element's key selector.

Func<TElement, TKey> KeySelector { get; }

Property Value

Func<TElement, TKey>

OnChange

Event stream that emits events when variable's elements change.

IEventStream<ICollectionVariableChangeEvent<TKey, TElement>> OnChange { get; }

Property Value

IEventStream<ICollectionVariableChangeEvent<TKey, TElement>>