MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsRange­AttributeBuild­Eligibility
Open sandboxFocus

RangeAttribute.BuildEligibility Method

BuildEligibility(IEligibilityBuilder<IFieldOrPropertyOrIndexer>)

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 override void BuildEligibility(IEligibilityBuilder<IFieldOrPropertyOrIndexer> builder)
Parameters
Type Name Description
IEligibilityBuilder<IFieldOrPropertyOrIndexer> builder

An object that allows the aspect to configure characteristics like description, dependencies, or layers.

Overrides
ContractAspect.BuildEligibility(IEligibilityBuilder<IFieldOrPropertyOrIndexer>)
Remarks

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

See Also

BuildEligibility(IEligibilityBuilder<IParameter>)

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 override void BuildEligibility(IEligibilityBuilder<IParameter> builder)
Parameters
Type Name Description
IEligibilityBuilder<IParameter> builder

An object that allows the aspect to configure characteristics like description, dependencies, or layers.

Overrides
ContractAspect.BuildEligibility(IEligibilityBuilder<IParameter>)
Remarks

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

See Also