Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Eligibility / Eligibility­Extensions / Declaring­Type

Method DeclaringType

DeclaringType<T>(IEligibilityBuilder<T>)

Gets an IEligibilityBuilder for the declaring type of the member validated by the given IEligibilityBuilder.

Declaration
public static IEligibilityBuilder<INamedType> DeclaringType<T>(this IEligibilityBuilder<T> eligibilityBuilder)
where T : class, IMemberOrNamedType
Parameters
Type Name Description
IEligibilityBuilder<T> eligibilityBuilder
Returns
Type Description
IEligibilityBuilder<INamedType>
Type Parameters
Name Description
T