Show / Hide Table of Contents

Interface IGetsValueAccessorBuilder

An object which gets instances of ValueAccessorBuilder<TValidated, TValue> for a specified rule builder context.

Namespace: CSF.Validation.ValidatorBuilding
Assembly: CSF.Validation.dll
Syntax
public interface IGetsValueAccessorBuilder

Methods

| Improve this Doc View Source

GetValueAccessorBuilder<TValidated, TValue>(ValidatorBuilderContext, Action<IConfiguresValueAccessor<TValidated, TValue>>)

Gets a builder for validating a value of a validated object (typically retrieved via member access).

Declaration
IConfiguresValueAccessor<TValidated, TValue> GetValueAccessorBuilder<TValidated, TValue>(ValidatorBuilderContext ValidatorBuilderContext, Action<IConfiguresValueAccessor<TValidated, TValue>> valueConfig)
Parameters
Type Name Description
ValidatorBuilderContext ValidatorBuilderContext

Contextual information about how validation rules should be built.

System.Action<IConfiguresValueAccessor<TValidated, TValue>> valueConfig

An action which configures the value accessor-builder.

Returns
Type Description
IConfiguresValueAccessor<TValidated, TValue>

A builder for validating the derived value.

Type Parameters
Name Description
TValidated

The type of the primary object under validation.

TValue

The type of the derived value to be validated.

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