Interface IReadOnlyCollectionVariableRoot<TKey, TElement>
Represents a generic read-only collection variable of VariableNode elements that listens to its children's events and propagates them.
public interface IReadOnlyCollectionVariableRoot<TKey, TElement> : IReadOnlyCollectionVariableRoot, IVariableNode where TKey : notnull where TElement : VariableNode
Type Parameters
TKeyKey type.
TElementElement type.
- Inherited Members
- Extension Methods
Properties
Elements
Current collection of elements.
ICollectionVariableRootElements<TKey, TElement> Elements { get; }
Property Value
- ICollectionVariableRootElements<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<ICollectionVariableRootChangeEvent<TKey, TElement>> OnChange { get; }
Property Value
- IEventStream<ICollectionVariableRootChangeEvent<TKey, TElement>>