Show / Hide Table of Contents

Interface IWrapsValidatorWithMessageSupport

An object which wraps a validator instance with the capability to show human-readable feedback messages for failde validation rules.

Namespace: CSF.Validation
Assembly: CSF.Validation.dll
Syntax
public interface IWrapsValidatorWithMessageSupport

Methods

| Improve this Doc View Source

GetValidatorWithMessageSupport(IValidator)

Wraps a non-generic validator with message-enriching behaviour.

Declaration
IValidator GetValidatorWithMessageSupport(IValidator validator)
Parameters
Type Name Description
IValidator validator

The validator instance to wrap.

Returns
Type Description
IValidator

The validator, with added message support.

| Improve this Doc View Source

GetValidatorWithMessageSupport<TValidated>(IValidator<TValidated>)

Wraps a generic validator with message-enriching behaviour.

Declaration
IValidator<TValidated> GetValidatorWithMessageSupport<TValidated>(IValidator<TValidated> validator)
Parameters
Type Name Description
IValidator<TValidated> validator

The validator instance to wrap.

Returns
Type Description
IValidator<TValidated>

The validator, with added message support.

Type Parameters
Name Description
TValidated

The validated type.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX