PostSharpAPI ReferencePost­Sharp.​ConstraintsIReferential­Constraint
Open sandboxFocus

IReferentialConstraint Interface

A referential constraint is a piece validation logic executed at build time. Referential constraints are applied to elements of code ((Assembly, System.Type, System.Reflection.MethodInfo, System.Reflection.ConstructorInfo, System.Reflection.PropertyInfo, System.Reflection.EventInfo, FieldInfo, System.Reflection.ParameterInfo), typically using custom attributes or MulticastAttribute, and verified at build time for every assembly using this element of code. This is a difference to scalar constraints, which are only verified for the assembly where that element of code is defined.

Namespace: PostSharp.Constraints
Assembly: PostSharp.dll
public interface IReferentialConstraint : IConstraint


Name Description
ValidateCode(Object, Assembly)

Validates the constraint.