nspectre - declarative validation for .NET

IValidator.Validate Method (Object, String, Type)

Validates a given object.

IValidationResult Validate(
   object candidate,
   string action,
   Type type
);

Parameters

candidate
The object to validate.
action
The action for which to validate.
type
The type to use for the validation.

Return Value

An IValidationResult.

Remarks

This method is used to validate type a as type b.

See Also

IValidator Interface | NSpectre.Core Namespace | IValidator.Validate Overload List