Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Aspects / Override­Field­Or­Property­Aspect

Class OverrideFieldOrPropertyAspect

A base aspect that overrides the implementation of a method.

Inheritance
OverrideFieldOrPropertyAspect
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public abstract class OverrideFieldOrPropertyAspect : FieldOrPropertyAspect, IAspect<IFieldOrProperty>, IAspect, ICompileTimeSerializable, IEligible<IFieldOrProperty>

Constructors

Name Description
OverrideFieldOrPropertyAspect()

Properties

Name Description
OverrideEnumerableProperty
OverrideEnumeratorProperty
OverrideProperty

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.

See Also