Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Eligibility / Eligibility­Extensions / Must­Be­Readable

Method MustBeReadable

MustBeReadable(IEligibilityBuilder<IFieldOrPropertyOrIndexer>)

Requires the target field, property or indexer to be writable.

Declaration
public static void MustBeReadable(this IEligibilityBuilder<IFieldOrPropertyOrIndexer> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<IFieldOrPropertyOrIndexer> eligibilityBuilder

MustBeReadable(IEligibilityBuilder<IParameter>)

Requires the parameter to be readable, i.e. not out.

Declaration
public static void MustBeReadable(this IEligibilityBuilder<IParameter> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<IParameter> eligibilityBuilder