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

IScalarConstraint.ValidateCode Method

ValidateCode(Object)

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

Declaration
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).