Interface IGetsValidatedTypeForBuilderType
An object which can get the generic validated type, given the System.Type of a validator builder class.
Namespace: CSF.Validation.ValidatorBuilding
Assembly: CSF.Validation.dll
Syntax
public interface IGetsValidatedTypeForBuilderType
Methods
| Improve this Doc View SourceGetValidatedType(Type)
Gets the generic validated type appropriate for the specified builderType
.
Declaration
Type GetValidatedType(Type builderType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | builderType | A type that indicates a validator builder. |
Returns
Type | Description |
---|---|
System.Type | The System.Type for which the specified builder type validates. |
Remarks
A builder type is one which implements the interface IBuildsValidator<TValidated>. This method gets the value of the generic type parameter used for that interface.
In order to be used with this method, the builderType
must implement
IBuildsValidator<TValidated> for precisely one generic type.
If the builder type implements the interface more than once then this method will be unable to return
a definitive result and will throw an exception.