MetalamaAPI documentationAspect APIMetalama.​Framework.​ValidationIValidator­Receiver<TDeclaration>Validate­References
Open sandboxFocus

IValidatorReceiver<TDeclaration>.ValidateReferences Method

ValidateReferences<TValidator>(Func<TDeclaration, TValidator>)

Registers a reference validator, provided by a delegate that provides an instance of the ReferenceValidator abstract class. The reference validator will be invoked to validate references to any declaration in the current set. Only source code references are validated. References added by aspects are ignored by design.

void ValidateReferences<TValidator>(Func<TDeclaration, TValidator> validator)
where TValidator : ReferenceValidator
Type Name Description
System.Func<TDeclaration, TValidator> validator
Type Parameters
Name Description