Open sandboxFocus
  • Article

Method DerivedTypesMustRespectNamingConvention

DerivedTypesMustRespectNamingConvention(IQuery<IDeclaration>, string, Func<ReferencePredicateBuilder, ReferencePredicate>?)

Reports a warning when any type that inherits any type in the current selection does not follow a given convention, where the convention is given as a star pattern, i.e. where the * matches any sequence of characters, even empty.

Declaration
public static void DerivedTypesMustRespectNamingConvention(this IQuery<IDeclaration> query, string pattern, Func<ReferencePredicateBuilder, ReferencePredicate>? exclusions = null)
Parameters
Type Name Description
IQuery<IDeclaration> query
string pattern
Func<ReferencePredicateBuilder, ReferencePredicate> exclusions
  • Navigation