MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​AspectsBase­Usage­Validation­AttributeTry­Create­Predicate
Open sandboxFocus

BaseUsageValidationAttribute.TryCreatePredicate Method

TryCreatePredicate(IAspectBuilder<IMemberOrNamedType>, out ReferencePredicate)

Creates a ReferencePredicate based on the properties of the custom attributes.

Declaration
protected bool TryCreatePredicate(IAspectBuilder<IMemberOrNamedType> builder, out ReferencePredicate predicate)
Parameters
Type Name Description
IAspectBuilder<IMemberOrNamedType> builder
ReferencePredicate predicate
Returns
Type Description
System.Boolean