PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Constraints Namespace / IScalar­Constraint Interface / IScalar­Constraint Methods / IScalar­Constraint.​Validate­Code Method

IScalarConstraint.ValidateCode Method

Validates the element of code to which the constraint is applied.

Namespace:  PostSharp.Constraints
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
void ValidateCode(
	Object target
)

Parameters

target
Type: System.Object
Element of code to which the constraint is applied (Assembly, Type, MethodInfo, ConstructorInfo, PropertyInfo, EventInfo, FieldInfo, ParameterInfo).
See Also