PostSharpAPI ReferencePost­Sharp.​ConstraintsParameter­Value­ConstraintValidate­Parameter­Value
Open sandboxFocus

ParameterValueConstraint.ValidateParameterValue Method

ValidateParameterValue(ParameterInfo, IExpression)

Validates the value passed to the parameter.

Declaration
protected abstract void ValidateParameterValue(ParameterInfo parameter, IExpression expression)
Parameters
Type Name Description
ParameterInfo parameter

The parameter to which the current constraint has been applied.

IExpression expression

The expression passed to the parameter.