MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ConstraintsIScalar­Constraint
Open sandboxFocus

IScalarConstraint Interface

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

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

Methods

Name Description
ValidateCode(Object)

See Also