ReferentialConstraint Class
In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)
method. For instance, from the BuildAspect(IAspectBuilder<T>) method of an aspect, call builder
.(...)
.ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
Inheritance
Namespace: PostSharp.Constraints
Assembly: Metalama.Migration.dll
Syntax
public abstract class ReferentialConstraint : Constraint, IReferentialConstraint, IConstraint
Constructors
Name | Description |
---|---|
ReferentialConstraint() |
Methods
Name | Description |
---|---|
ValidateCode(Object, Assembly) |