PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Constraints Namespace / Parameter­Value­Constraint Class / Parameter­Value­Constraint Methods

ParameterValueConstraint Methods

The ParameterValueConstraint type exposes the following members.

Protected methodValidateParameterValue
Validates the value passed to the parameter.
Protected methodValidateTargetParameter
Validates the parameter to which the current constraint has been applied. A typical use of this method is to validate the parameter type. Overriding implementations should call the base implementation.
See Also