Interface IGetsValidatorBuilderContextFromBuilder
An object which gets a ValidatorBuilderContext (which in turn may get a collection of manifest validation rules) from a specified type that implements IBuildsValidator<TValidated>.
Namespace: CSF.Validation.ValidatorBuilding
Assembly: CSF.Validation.dll
Syntax
public interface IGetsValidatorBuilderContextFromBuilder
Remarks
This is used when importing validation rules from another validator definition.
Methods
| Improve this Doc View SourceGetValidatorBuilderContext(Type, ValidatorBuilderContext)
Gets an object which provides manifest rules from a specified validator-builder type.
Declaration
ValidatorBuilderContext GetValidatorBuilderContext(Type definitionType, ValidatorBuilderContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Type | definitionType | A type which must implement IBuildsValidator<TValidated>. |
ValidatorBuilderContext | context | Contextual information about how a validator should be built. |
Returns
Type | Description |
---|---|
ValidatorBuilderContext | An object which provides a collection of ManifestRule instances. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If the |