A base class for InternalsCannotBeUsedFromAttribute and InternalsCanOnlyBeUsedFromAttribute.
Inheritance
InternalsUsageValidationAttribute
Implements
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public abstract class InternalsUsageValidationAttribute : BaseUsageValidationAttribute, IConditionallyInheritableAspect, IAspect<INamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<INamedType>Constructors
| Name | Description |
|---|---|
| InternalsUsageValidationAttribute() |
Methods
| Name | Description |
|---|---|
| BuildAspect(IAspectBuilder<INamedType>) | Defines the aspect implementation by adding advice, child aspects, and validators to the target declaration. |
| BuildEligibility(IEligibilityBuilder<INamedType>) | Configures the eligibility of the aspect or attribute by defining rules that determine which declarations the aspect can be applied to. |
| CreateValidator(ReferencePredicate, ReferencePredicate?) |