Open sandboxFocus

Interface IReferentialConstraint

A referential constraint is a piece validation logic executed at build time. Referential constraints are applied to elements of code ((Assembly, Type, MethodInfo, ConstructorInfo, PropertyInfo, EventInfo, FieldInfo, 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
Syntax
public interface IReferentialConstraint : IConstraint

Methods

Name Description
ValidateCode(object, Assembly)

Validates the constraint.