Table of Contents

Interface IVariable<TValue, TValidationResult>

Namespace
LfrlAnvil.Reactive.State
Assembly
LfrlAnvil.Reactive.State.dll

Represents a generic variable.

public interface IVariable<TValue, TValidationResult> : IReadOnlyVariable<TValue, TValidationResult>, IReadOnlyVariable<TValue>, IReadOnlyVariable, IVariableNode

Type Parameters

TValue

Value type.

TValidationResult

Validation 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

value TValue

Value 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

value TValue

Value to set.

Returns

VariableChangeResult

Result of this change attempt.