Table of Contents

Class CollectionVariableRoot.WithoutValidators<TValidationResult>

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

Creates instances of CollectionVariableRoot<TKey, TElement, TValidationResult> type without validators.

public static class CollectionVariableRoot.WithoutValidators<TValidationResult>

Type Parameters

TValidationResult

Validation result type.

Inheritance
CollectionVariableRoot.WithoutValidators<TValidationResult>
Inherited Members

Methods

Create<TKey, TElement>(IEnumerable<TElement>, CollectionVariableRootChanges<TKey, TElement>, Func<TElement, TKey>, IEqualityComparer<TKey>?)

[Pure]
public static CollectionVariableRoot<TKey, TElement, TValidationResult> Create<TKey, TElement>(IEnumerable<TElement> initialElements, CollectionVariableRootChanges<TKey, TElement> elementChanges, Func<TElement, TKey> keySelector, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull where TElement : VariableNode

Parameters

initialElements IEnumerable<TElement>

Initial collection of elements.

elementChanges CollectionVariableRootChanges<TKey, TElement>

Element changes that define the collection of current elements.

keySelector Func<TElement, TKey>

Element's key selector.

keyComparer IEqualityComparer<TKey>

Element key equality comparer.

Returns

CollectionVariableRoot<TKey, TElement, TValidationResult>

New CollectionVariableRoot<TKey, TElement, TValidationResult> instance

Type Parameters

TKey

Key type.

TElement

Element type.

Create<TKey, TElement>(IEnumerable<TElement>, Func<TElement, TKey>, IEqualityComparer<TKey>?)

[Pure]
public static CollectionVariableRoot<TKey, TElement, TValidationResult> Create<TKey, TElement>(IEnumerable<TElement> initialElements, Func<TElement, TKey> keySelector, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull where TElement : VariableNode

Parameters

initialElements IEnumerable<TElement>

Initial collection of elements.

keySelector Func<TElement, TKey>

Element's key selector.

keyComparer IEqualityComparer<TKey>

Element key equality comparer.

Returns

CollectionVariableRoot<TKey, TElement, TValidationResult>

New CollectionVariableRoot<TKey, TElement, TValidationResult> instance

Type Parameters

TKey

Key type.

TElement

Element type.