MustHaveAccessibility(IEligibilityBuilder<IMemberOrNamedType>, Accessibility, params Accessibility[])
Requires the target member to have exactly one of the given accessibilities.
Declaration
public static void MustHaveAccessibility(this IEligibilityBuilder<IMemberOrNamedType> eligibilityBuilder, Accessibility accessibility, params Accessibility[] otherAccessibilities)
Parameters
Type | Name | Description |
---|---|---|
IEligibilityBuilder<IMemberOrNamedType> | eligibilityBuilder | |
Accessibility | accessibility | |
Accessibility[] | otherAccessibilities |