Table of Contents

Interface ICollectionVariableElements<TKey, TElement, TValidationResult>

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

Represents a generic collection of elements that belong to an IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>.

public interface ICollectionVariableElements<TKey, TElement, TValidationResult> : ICollectionVariableElements<TKey, TElement>, ICollectionVariableElements, IReadOnlyDictionary<TKey, TElement>, IReadOnlyCollection<KeyValuePair<TKey, TElement>>, IEnumerable<KeyValuePair<TKey, TElement>>, IEnumerable where TKey : notnull where TElement : notnull

Type Parameters

TKey

Key type.

TElement

Element type.

TValidationResult

Validation result type.

Inherited Members

Properties

ErrorsValidator

Element validator that marks result as errors.

IValidator<TElement, TValidationResult> ErrorsValidator { get; }

Property Value

IValidator<TElement, TValidationResult>

WarningsValidator

Element validator that marks result as warnings.

IValidator<TElement, TValidationResult> WarningsValidator { get; }

Property Value

IValidator<TElement, TValidationResult>

Methods

GetErrors(TKey)

Returns a collection of current validation errors associated with the given element key.

[Pure]
Chain<TValidationResult> GetErrors(TKey key)

Parameters

key TKey

Key to check.

Returns

Chain<TValidationResult>

Collection of current validation errors associated with the given element key.

GetWarnings(TKey)

Returns a collection of current validation warnings associated with the given element key.

[Pure]
Chain<TValidationResult> GetWarnings(TKey key)

Parameters

key TKey

Key to check.

Returns

Chain<TValidationResult>

Collection of current validation warnings associated with the given element key.