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

Method MustNotBeStatic

MustNotBeStatic(IEligibilityBuilder<IMemberOrNamedType>)

Forbids the target member or type from being static.

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