Open sandboxFocus

Class TypeParameterAspect

A base class for aspects that can be applied to type parameters (i.e. generic parameters) as custom attributes.

Inheritance
TypeParameterAspect
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.GenericParameter)]
public abstract class TypeParameterAspect : Aspect, IAspect<ITypeParameter>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<ITypeParameter>
Remarks

This class is a redundant helper class. The aspect framework only respects the IAspect<T> interface.

Constructors

Name Description
TypeParameterAspect()

Methods

Name Description
BuildAspect(IAspectBuilder<ITypeParameter>)

Initializes the aspect. The implementation must add advice, child aspects and validators using the builder parameter.

BuildEligibility(IEligibilityBuilder<ITypeParameter>)

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.