Table of Contents

Class CollectionVariableElementSnapshot<TElement, TValidationResult>

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

Represents a generic snapshot of an IReadOnlyCollectionVariable element.

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

Type Parameters

TElement

Element type.

TValidationResult

Validation result type.

Inheritance
CollectionVariableElementSnapshot<TElement, TValidationResult>
Implements
Derived
Inherited Members

Constructors

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

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

Parameters

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

Element

Underlying element.

public TElement Element { get; }

Property Value

TElement

NewErrors

Collection of validation errors after the change.

public Chain<TValidationResult> NewErrors { get; }

Property Value

Chain<TValidationResult>

NewState

Current state of the Element.

public CollectionVariableElementState NewState { get; }

Property Value

CollectionVariableElementState

NewWarnings

Collection of validation warnings after the change.

public Chain<TValidationResult> NewWarnings { get; }

Property Value

Chain<TValidationResult>

PreviousErrors

Collection of validation errors before the change.

public Chain<TValidationResult> PreviousErrors { get; }

Property Value

Chain<TValidationResult>

PreviousState

Previous state of the Element.

public CollectionVariableElementState PreviousState { get; }

Property Value

CollectionVariableElementState

PreviousWarnings

Collection of validation warnings before the change.

public Chain<TValidationResult> PreviousWarnings { get; }

Property Value

Chain<TValidationResult>