Class VariableRootValidationEvent<TKey>
Represents a generic validation event emitted by an IReadOnlyVariableRoot<TKey>.
public class VariableRootValidationEvent<TKey> : IVariableRootEvent<TKey>, IVariableRootEvent, IVariableNodeEvent where TKey : notnull
Type Parameters
TKeyChild node's key type.
- Inheritance
-
VariableRootValidationEvent<TKey>
- Implements
-
IVariableRootEvent<TKey>
- Inherited Members
Constructors
VariableRootValidationEvent(IReadOnlyVariableRoot<TKey>, TKey, IVariableNodeEvent, VariableState)
Creates a new VariableRootValidationEvent<TKey> instance.
public VariableRootValidationEvent(IReadOnlyVariableRoot<TKey> root, TKey nodeKey, IVariableNodeEvent sourceEvent, VariableState previousState)
Parameters
rootIReadOnlyVariableRoot<TKey>Variable node that emitted this event.
nodeKeyTKeyKey of the child node that caused this event.
sourceEventIVariableNodeEventSource child node event.
previousStateVariableStatePrevious state of the Variable.
Properties
NewState
Current state of the Variable.
public VariableState NewState { get; }
Property Value
NodeKey
Key of the child node that caused this event.
public TKey NodeKey { get; }
Property Value
- TKey
PreviousState
Previous state of the Variable.
public VariableState PreviousState { get; }
Property Value
SourceEvent
Source child node event.
public IVariableNodeEvent SourceEvent { get; }
Property Value
Variable
Variable node that emitted this event.
public IReadOnlyVariableRoot<TKey> Variable { get; }
Property Value
- IReadOnlyVariableRoot<TKey>