PostSharpAPI ReferencePost­Sharp.​ConstraintsScalar­ConstraintValidate­Code
Open sandboxFocus

ScalarConstraint.ValidateCode Method

ValidateCode(Object)

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

Declaration
public virtual void ValidateCode(object target)
Parameters
Type Name Description
Object target

Element of code to which the constraint is applied (Assembly, System.Type, MethodInfo, ConstructorInfo, System.Reflection.PropertyInfo, EventInfo, System.Reflection.FieldInfo, ParameterInfo).

Implements
IScalarConstraint.ValidateCode(Object)