MetalamaAPI documentationExtensions APIMetalama.​Extensions.​MulticastOverride­Field­Or­Property­Multicast­AspectBuild­Eligibility
Open sandboxFocus

OverrideFieldOrPropertyMulticastAspect.BuildEligibility Method

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.

Declaration
public virtual void BuildEligibility(IEligibilityBuilder<IFieldOrProperty> builder)
Parameters
Type Name Description
IEligibilityBuilder<IFieldOrProperty> builder
Implements
IEligible<T>.BuildEligibility(IEligibilityBuilder<T>)
Remarks

Do not reference instance class members in your implementation of BuildEligibility(IEligibilityBuilder<T>). Indeed, this method is called on an instance obtained using System.Runtime.Serialization.FormatterServices.GetUninitializedObject(System.Type), that is, without invoking the class constructor.

See Also