Class CompositeValidator<T>
- Namespace
- Core.CliniCore.Domain.Validation
- Assembly
- Core.CliniCore.dll
public class CompositeValidator<T> : IValidator<T>
Type Parameters
T
- Inheritance
-
CompositeValidator<T>
- Implements
-
- Inherited Members
-
Constructors
CompositeValidator(params IValidator<T>[])
public CompositeValidator(params IValidator<T>[] validators)
Parameters
validators IValidator<T>[]
Properties
ErrorMessage
public string ErrorMessage { get; }
Property Value
- string
Methods
And(IValidator<T>)
public CompositeValidator<T> And(IValidator<T> validator)
Parameters
validator IValidator<T>
Returns
- CompositeValidator<T>
IsValid(T)
public bool IsValid(T value)
Parameters
value T
Returns
- bool