Open sandboxFocus

Class FieldOrPropertyAspect

A base class for aspects that can be applied to fields or properties as custom attributes.

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public abstract class FieldOrPropertyAspect : Aspect, IAspect<IFieldOrProperty>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IFieldOrProperty>
Remarks

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

Constructors

Name Description
FieldOrPropertyAspect()

Methods

Name Description
BuildAspect(IAspectBuilder<IFieldOrProperty>)

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

BuildEligibility(IEligibilityBuilder<IFieldOrProperty>)

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.