Interface IValidator<T>
- Namespace
- AetherUtils.Core.Validation
- Assembly
- AetherUtils.Core.dll
Interface that all validator classes must implement.
public interface IValidator<in T> where T : notnull
Type Parameters
T
Methods
Validate(params T[])
Validate the objects against a set of conditions.
[UsedImplicitly]
public static abstract List<IValidationFailure> Validate(params T[] objects)
Parameters
objectsT[]- The objects to validate.
Returns
- List<IValidationFailure>
- A list of IValidationFailure indicating the result of validation. If no validation errors, this list should be empty.