Interface ICollectionVariableElements<TKey, TElement, TValidationResult>
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
TKeyKey type.
TElementElement type.
TValidationResultValidation 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
keyTKeyKey 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
keyTKeyKey to check.
Returns
- Chain<TValidationResult>
Collection of current validation warnings associated with the given element
key.