Interface IVariable<TValue, TValidationResult>
Represents a generic variable.
public interface IVariable<TValue, TValidationResult> : IReadOnlyVariable<TValue, TValidationResult>, IReadOnlyVariable<TValue>, IReadOnlyVariable, IVariableNode
Type Parameters
TValueValue type.
TValidationResultValidation result type.
- Inherited Members
- Extension Methods
Methods
Change(TValue)
Changes the Value, even if the value to set is equal to the current value.
VariableChangeResult Change(TValue value)
Parameters
valueTValueValue to set.
Returns
- VariableChangeResult
Result of this change attempt.
ClearValidation()
Removes all errors and warnings from this variable.
void ClearValidation()
Refresh()
Refreshes this variable.
void Refresh()
RefreshValidation()
Refreshes this variable's validation.
void RefreshValidation()
TryChange(TValue)
Attempts to change the Value if the value to set is not equal to the current value.
VariableChangeResult TryChange(TValue value)
Parameters
valueTValueValue to set.
Returns
- VariableChangeResult
Result of this change attempt.