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