Class CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>
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
TElementElement type.
TValidationResultValidation result type.
- Inheritance
-
CollectionVariableElementSnapshot<TElement, TValidationResult>CollectionVariableReplacedElementSnapshot<TElement, TValidationResult>
- Implements
-
ICollectionVariableElementSnapshot<TElement>ICollectionVariableElementValidationSnapshot<TValidationResult>
- Inherited Members
Constructors
CollectionVariableReplacedElementSnapshot(TElement, TElement, CollectionVariableElementState, CollectionVariableElementState, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>)
Creates a new CollectionVariableReplacedElementSnapshot<TElement, TValidationResult> instance.
public CollectionVariableReplacedElementSnapshot(TElement previousElement, TElement element, CollectionVariableElementState previousState, CollectionVariableElementState newState, Chain<TValidationResult> previousErrors, Chain<TValidationResult> newErrors, Chain<TValidationResult> previousWarnings, Chain<TValidationResult> newWarnings)
Parameters
previousElementTElementReplaced element.
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
PreviousElement
Replaced element.
public TElement PreviousElement { get; }
Property Value
- TElement