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

ParameterValueConstraint.ValidateParameterValue Method

Validates the value passed to the parameter.

Namespace:  PostSharp.Constraints
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
protected abstract void ValidateParameterValue(
	ParameterInfo parameter,
	IExpression expression
)

Parameters

parameter
Type: System.Reflection.ParameterInfo
The parameter to which the current constraint has been applied.
expression
Type: PostSharp.Reflection.MethodBody.IExpression
The expression passed to the parameter.
See Also