Class CollectionVariableChangeEvent<TKey, TElement, TValidationResult>
Represents a generic variable change event emitted by an IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>.
public class CollectionVariableChangeEvent<TKey, TElement, TValidationResult> : ICollectionVariableChangeEvent<TKey, TElement>, ICollectionVariableChangeEvent, IVariableNodeEvent where TKey : notnull where TElement : notnull
Type Parameters
TKeyKey type.
TElementElement type.
TValidationResultValidation result type.
- Inheritance
-
CollectionVariableChangeEvent<TKey, TElement, TValidationResult>
- Implements
-
ICollectionVariableChangeEvent<TKey, TElement>
- Inherited Members
Constructors
CollectionVariableChangeEvent(IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>, VariableState, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>, IReadOnlyList<CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>>, VariableChangeSource)
Creates a new CollectionVariableChangeEvent<TKey, TElement, TValidationResult> instance.
public CollectionVariableChangeEvent(IReadOnlyCollectionVariable<TKey, TElement, TValidationResult> variable, VariableState previousState, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> addedElements, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> removedElements, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> refreshedElements, IReadOnlyList<CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>> replacedElements, VariableChangeSource source)
Parameters
variableIReadOnlyCollectionVariable<TKey, TElement, TValidationResult>Variable node that emitted this event.
previousStateVariableStatePrevious state of the Variable.
addedElementsIReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>Collection of elements added due to this event.
removedElementsIReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>Collection of elements removed due to this event.
refreshedElementsIReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>Collection of elements refreshed due to this event.
replacedElementsIReadOnlyList<CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>>Collection of elements replaced due to this event.
sourceVariableChangeSourceSpecifies the source of this value change.
Properties
AddedElements
Collection of elements added due to this event.
public IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> AddedElements { get; }
Property Value
- IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>
NewState
Current state of the Variable.
public VariableState NewState { get; }
Property Value
PreviousState
Previous state of the Variable.
public VariableState PreviousState { get; }
Property Value
RefreshedElements
Collection of elements refreshed due to this event.
public IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> RefreshedElements { get; }
Property Value
- IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>
RemovedElements
Collection of elements removed due to this event.
public IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> RemovedElements { get; }
Property Value
- IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>
ReplacedElements
Collection of elements replaced due to this event.
public IReadOnlyList<CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>> ReplacedElements { get; }
Property Value
- IReadOnlyList<CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>>
Source
Specifies the source of this value change.
public VariableChangeSource Source { get; }
Property Value
Variable
Variable node that emitted this event.
public IReadOnlyCollectionVariable<TKey, TElement, TValidationResult> Variable { get; }
Property Value
- IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>