Table of Contents

Struct CollectionVariableRootChanges<TKey, TElement>

Namespace
LfrlAnvil.Reactive.State
Assembly
LfrlAnvil.Reactive.State.dll
public readonly struct CollectionVariableRootChanges<TKey, TElement> where TKey : notnull where TElement : VariableNode

Type Parameters

TKey

Key type.

TElement

Element type.

Inherited Members

Constructors

CollectionVariableRootChanges(IEnumerable<TElement>, IEnumerable<TKey>)

public CollectionVariableRootChanges(IEnumerable<TElement> elementsToAdd, IEnumerable<TKey> keysToRestore)

Parameters

elementsToAdd IEnumerable<TElement>

Collection of elements to add.

keysToRestore IEnumerable<TKey>

Collection of keys of removed elements to restore.

Fields

Empty

Represents an empty collection.

public static readonly CollectionVariableRootChanges<TKey, TElement> Empty

Field Value

CollectionVariableRootChanges<TKey, TElement>

Properties

ElementsToAdd

Collection of elements to add.

public IEnumerable<TElement> ElementsToAdd { get; }

Property Value

IEnumerable<TElement>

KeysToRestore

Collection of keys of removed elements to restore.

public IEnumerable<TKey> KeysToRestore { get; }

Property Value

IEnumerable<TKey>