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

ScalarConstraint.ValidateCode Method

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

Namespace:  PostSharp.Constraints
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
public virtual 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).

Implements

IScalarConstraint.ValidateCode(Object)
See Also