Class CollectionVariableElementSnapshot<TElement, TValidationResult>
Represents a generic snapshot of an IReadOnlyCollectionVariable element.
public class CollectionVariableElementSnapshot<TElement, TValidationResult> : ICollectionVariableElementSnapshot<TElement>, ICollectionVariableElementValidationSnapshot<TValidationResult>, ICollectionVariableElementSnapshot where TElement : notnull
Type Parameters
TElementElement type.
TValidationResultValidation result type.
- Inheritance
-
CollectionVariableElementSnapshot<TElement, TValidationResult>
- Implements
-
ICollectionVariableElementSnapshot<TElement>ICollectionVariableElementValidationSnapshot<TValidationResult>
- Derived
- Inherited Members
Constructors
CollectionVariableElementSnapshot(TElement, CollectionVariableElementState, CollectionVariableElementState, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>)
Creates a new CollectionVariableElementSnapshot<TElement, TValidationResult> instance.
public CollectionVariableElementSnapshot(TElement element, CollectionVariableElementState previousState, CollectionVariableElementState newState, Chain<TValidationResult> previousErrors, Chain<TValidationResult> newErrors, Chain<TValidationResult> previousWarnings, Chain<TValidationResult> newWarnings)
Parameters
elementTElementUnderlying element.
previousStateCollectionVariableElementStatePrevious state of the Element.
newStateCollectionVariableElementStateCurrent state of the Element.
previousErrorsChain<TValidationResult>Collection of validation errors before the change.
newErrorsChain<TValidationResult>Collection of validation errors after the change.
previousWarningsChain<TValidationResult>Collection of validation warnings before the change.
newWarningsChain<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
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
PreviousWarnings
Collection of validation warnings before the change.
public Chain<TValidationResult> PreviousWarnings { get; }
Property Value
- Chain<TValidationResult>