Interface IReadOnlyVariable<TValue, TValidationResult>
Represents a generic read-only variable.
public interface IReadOnlyVariable<TValue, TValidationResult> : IReadOnlyVariable<TValue>, IReadOnlyVariable, IVariableNode
Type Parameters
TValueValue type.
TValidationResultValidation result type.
- Inherited Members
- Extension Methods
Properties
Errors
Collection of current validation errors.
Chain<TValidationResult> Errors { get; }
Property Value
- Chain<TValidationResult>
ErrorsValidator
Value validator that marks result as errors.
IValidator<TValue, TValidationResult> ErrorsValidator { get; }
Property Value
- IValidator<TValue, TValidationResult>
OnChange
Event stream that emits events when variable's value changes.
IEventStream<VariableValueChangeEvent<TValue, TValidationResult>> OnChange { get; }
Property Value
- IEventStream<VariableValueChangeEvent<TValue, TValidationResult>>
OnValidate
Event stream that emits events when variable's validation state changes.
IEventStream<VariableValidationEvent<TValue, TValidationResult>> OnValidate { get; }
Property Value
- IEventStream<VariableValidationEvent<TValue, TValidationResult>>
Warnings
Collection of current validation warnings.
Chain<TValidationResult> Warnings { get; }
Property Value
- Chain<TValidationResult>
WarningsValidator
Value validator that marks result as warnings.
IValidator<TValue, TValidationResult> WarningsValidator { get; }
Property Value
- IValidator<TValue, TValidationResult>