PostSharpAPI ReferencePost­Sharp.​ConstraintsNaming­Convention­AttributeValidate­Code
Open sandboxFocus

NamingConventionAttribute.ValidateCode Method

ValidateCode(Object)

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

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

Overrides
ScalarConstraint.ValidateCode(Object)