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

Method MustBeStatic

MustBeStatic(IEligibilityBuilder<IMemberOrNamedType>)

Requires the target member or type to be static.

Declaration
public static void MustBeStatic(this IEligibilityBuilder<IMemberOrNamedType> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<IMemberOrNamedType> eligibilityBuilder