MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​PredicatesReference­Predicate­ExtensionsType
Open sandboxFocus

ReferencePredicateExtensions.Type Method

Type(ReferencePredicateBuilder, Type)

Accepts code references contained in a given type.

Declaration
public static ReferencePredicate Type(this ReferencePredicateBuilder builder, Type type)
Parameters
Type Name Description
ReferencePredicateBuilder builder
System.Type type
Returns
Type Description
ReferencePredicate
See Also

Type(ReferencePredicateBuilder, String)

Accepts code references contained in a given type specified as a string, optionally containing wildcards or *.

Declaration
public static ReferencePredicate Type(this ReferencePredicateBuilder builder, string type)
Parameters
Type Name Description
ReferencePredicateBuilder builder

The ReferencePredicateBuilder.

System.String type

(matches any identifier character, but not the dot), .. (matches any sub-namespace in the middle of a full type name), . (matches any sub-namespace at the beginning of the full type name) or .** (matches any sub-namespace and any type name at the end of a namespace).

Returns
Type Description
ReferencePredicate