MetalamaAPI documentationAspect APIMetalama.​Framework.​ValidationReference­Validator
Open sandboxFocus

ReferenceValidator Class

A validator that can validate code references.

Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
public abstract class ReferenceValidator : Validator<ReferenceValidationContext>, ICompileTimeSerializable

Constructors

Name Description
ReferenceValidator()

Properties

Name Description
IncludeDerivedTypes

Gets a value indicating whether references to derived types should also be visited by the Validate(in TContext) method. This property is only evaluated when the validated declaration is an INamedType.

ValidatedReferenceKinds

Gets the kinds of references for which the Validate(in TContext) method should be invoked.