Method ValidateReferences
ValidateReferences(ValidatorDelegate<ReferenceValidationContext>, ReferenceKinds)
Registers a method that will be invoked to validate references to any declaration in the current set. This method
must have a parameter of type in
ReferenceValidationContext. Only source code references
are validated. References added by aspects are ignored by design.
Declaration
void ValidateReferences(ValidatorDelegate<ReferenceValidationContext> validateMethod, ReferenceKinds referenceKinds)
Parameters
Type | Name | Description |
---|---|---|
ValidatorDelegate<ReferenceValidationContext> | validateMethod | |
ReferenceKinds | referenceKinds | Kinds of references that this method is interested to analyze. |
ValidateReferences(ReferenceValidator)
Declaration
void ValidateReferences(ReferenceValidator validator)
Parameters
Type | Name | Description |
---|---|---|
ReferenceValidator | validator |