Interface IReadOnlyCollectionVariable<TKey, TElement>
Represents a generic read-only collection variable.
public interface IReadOnlyCollectionVariable<TKey, TElement> : IReadOnlyCollectionVariable, IVariableNode where TKey : notnull where TElement : notnull
Type Parameters
TKeyKey type.
TElementElement 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>>