CompiledValidators by Daniel Moore

<PackageReference Include="CompiledValidators" Version="1.0.0" />

 Validator

public class Validator : IValidator
Provides validation using cached static analysis.

Gets the validation error returned if the given object is null.

public static Validator Default { get; set; }

Gets or sets the default validator.

public Validator(bool isThreadSafe, IRecursionPolicy recursionPolicy, IValidatorProvider validatorProvider, IValidationExpressionConverter[] converters)

Initializes a new instance of the Validator class.

public Validator(bool isThreadSafe, IRecursionPolicy recursionPolicy, IValidatorProvider validatorProvider, IEnumerable<IValidationExpressionConverter> converters)

Initializes a new instance of the Validator class.

public bool IsValid<T>(T obj)

Determines whether the specified object is valid.

public IEnumerable<ValidationError> Validate<T>(T obj, bool isOptimistic = true)

Validates the specified object and returns all errors.

Validates until the first error is found and returns it.