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

IConstraint Interface

In Metalama, use an aspect or a fabric, and register a reference validator using the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) or Validate(ValidatorDelegate<DeclarationValidationContext>) method. For instance, from the BuildAspect(IAspectBuilder<T>) method of an aspect, call builder.(...).ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).

Namespace: PostSharp.Constraints
Assembly: Metalama.Migration.dll
Syntax
public interface IConstraint

Methods

Name Description
ValidateConstraint(Object)

See Also