Metalama//API Documentation/Extensions API/Metalama.​Extensions.​Architecture.​Aspects/Base­Usage­Validation­Attribute/Try­Create­Predicate
Open sandboxFocus

Method TryCreatePredicate

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
Boolean