Table of Contents

Class CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>

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

Represents a generic snapshot of a replaced IReadOnlyCollectionVariable element.

public class CollectionVariableReplacedElementSnapshot<TElement, TValidationResult> : CollectionVariableElementSnapshot<TElement, TValidationResult>, ICollectionVariableElementSnapshot<TElement>, ICollectionVariableElementValidationSnapshot<TValidationResult>, ICollectionVariableElementSnapshot where TElement : notnull

Type Parameters

TElement

Element type.

TValidationResult

Validation result type.

Inheritance
CollectionVariableElementSnapshot<TElement, TValidationResult>
CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>
Implements
Inherited Members

Constructors

CollectionVariableReplacedElementSnapshot(TElement, TElement, CollectionVariableElementState, CollectionVariableElementState, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>)

public CollectionVariableReplacedElementSnapshot(TElement previousElement, TElement element, CollectionVariableElementState previousState, CollectionVariableElementState newState, Chain<TValidationResult> previousErrors, Chain<TValidationResult> newErrors, Chain<TValidationResult> previousWarnings, Chain<TValidationResult> newWarnings)

Parameters

previousElement TElement

Replaced element.

element TElement

Underlying element.

previousState CollectionVariableElementState

Previous state of the Element.

newState CollectionVariableElementState

Current state of the Element.

previousErrors Chain<TValidationResult>

Collection of validation errors before the change.

newErrors Chain<TValidationResult>

Collection of validation errors after the change.

previousWarnings Chain<TValidationResult>

Collection of validation warnings before the change.

newWarnings Chain<TValidationResult>

Collection of validation warnings after the change.

Properties

PreviousElement

Replaced element.

public TElement PreviousElement { get; }

Property Value

TElement