ReferenceConstraint 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
[MulticastAttributeUsage]
public abstract class ReferenceConstraint : ReferentialConstraint, IReferentialConstraint, IConstraint
Constructors
Name | Description |
---|---|
ReferenceConstraint() |
Methods
Name | Description |
---|---|
ValidateCode(Object, Assembly) | |
ValidateReference(ICodeReference) |