MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ConstraintsConstraint
Open sandboxFocus

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
IConstraint
Namespace: PostSharp.Constraints
Assembly: Metalama.Migration.dll
Syntax
public abstract class Constraint : MulticastAttribute, IConstraint

Constructors

Name Description
Constraint()

Methods

Name Description
ValidateConstraint(Object)

See Also