Struct CollectionVariableRootChanges<TKey, TElement>
Represents changes to make to ICollectionVariableRoot<TKey, TElement, TValidationResult>.
public readonly struct CollectionVariableRootChanges<TKey, TElement> where TKey : notnull where TElement : VariableNode
Type Parameters
TKeyKey type.
TElementElement type.
- Inherited Members
Constructors
CollectionVariableRootChanges(IEnumerable<TElement>, IEnumerable<TKey>)
Creates a new CollectionVariableRootChanges<TKey, TElement> instance.
public CollectionVariableRootChanges(IEnumerable<TElement> elementsToAdd, IEnumerable<TKey> keysToRestore)
Parameters
elementsToAddIEnumerable<TElement>Collection of elements to add.
keysToRestoreIEnumerable<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>