Table of Contents

Interface IValidator<T>

Namespace
Veritas
Assembly
Veritas.dll

Validates an identifier into a strongly typed value.

public interface IValidator<T>

Type Parameters

T

Resulting 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

input ReadOnlySpan<char>

The value to examine.

result ValidationResult<T>

The validation result when the method returns.

Returns

bool

true if the input is valid; otherwise, false.