Interface IValidator<T>
- Namespace
- Veritas
- Assembly
- Veritas.dll
Validates an identifier into a strongly typed value.
public interface IValidator<T>
Type Parameters
TResulting strong type.
Methods
TryValidate(ReadOnlySpan<char>, out ValidationResult<T>)
Attempts to validate the provided input.
bool TryValidate(ReadOnlySpan<char> input, out ValidationResult<T> result)
Parameters
inputReadOnlySpan<char>The value to examine.
resultValidationResult<T>The validation result when the method returns.
Returns
- bool
trueif the input is valid; otherwise,false.