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>) | Initializes the aspect. The implementation must add advice, child aspects and validators
using the |
| BuildEligibility(IEligibilityBuilder<INamedType>) | Configures the eligibility of the aspect or attribute. Implementations are not allowed to reference non-static members. Implementations must call the implementation of the base class if it exists. |
| CreateValidator(ReferencePredicate, ReferencePredicate?) |