Interface ICollectionVariableElements<TKey, TElement>
Represents a generic collection of elements that belong to an IReadOnlyCollectionVariable<TKey, TElement>.
public interface ICollectionVariableElements<TKey, TElement> : ICollectionVariableElements, IReadOnlyDictionary<TKey, TElement>, IReadOnlyCollection<KeyValuePair<TKey, TElement>>, IEnumerable<KeyValuePair<TKey, TElement>>, IEnumerable where TKey : notnull where TElement : notnull
Type Parameters
TKeyKey type.
TElementElement type.
- Inherited Members
Properties
Count
Number of elements in this collection.
int Count { get; }
Property Value
ElementComparer
Element equality comparer.
IEqualityComparer<TElement> ElementComparer { get; }
Property Value
- IEqualityComparer<TElement>
InvalidElementKeys
Collection of keys of invalid elements.
IReadOnlySet<TKey> InvalidElementKeys { get; }
Property Value
- IReadOnlySet<TKey>
KeyComparer
Element key equality comparer.
IEqualityComparer<TKey> KeyComparer { get; }
Property Value
- IEqualityComparer<TKey>
Keys
Underlying collection of element keys.
IReadOnlyCollection<TKey> Keys { get; }
Property Value
- IReadOnlyCollection<TKey>
ModifiedElementKeys
Collection of keys of changed elements.
IReadOnlySet<TKey> ModifiedElementKeys { get; }
Property Value
- IReadOnlySet<TKey>
Values
Underlying collection of elements.
IReadOnlyCollection<TElement> Values { get; }
Property Value
- IReadOnlyCollection<TElement>
WarningElementKeys
Collection of keys of elements with warnings.
IReadOnlySet<TKey> WarningElementKeys { get; }
Property Value
- IReadOnlySet<TKey>
Methods
GetErrors(TKey)
Returns a collection of current validation errors associated with the given element key.
[Pure]
IEnumerable GetErrors(TKey key)
Parameters
keyTKeyKey to check.
Returns
- IEnumerable
Collection of current validation errors associated with the given element
key.
GetState(TKey)
Returns the current state of an element with the given key.
[Pure]
CollectionVariableElementState GetState(TKey key)
Parameters
keyTKeyKey to check.
Returns
- CollectionVariableElementState
Current state of an element with the given
key.
GetWarnings(TKey)
Returns a collection of current validation warnings associated with the given element key.
[Pure]
IEnumerable GetWarnings(TKey key)
Parameters
keyTKeyKey to check.
Returns
- IEnumerable
Collection of current validation warnings associated with the given element
key.