Open sandboxFocus

Method DerivedTypesMustRespectRegexNamingConvention

DerivedTypesMustRespectRegexNamingConvention(IAspectReceiver<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 regular expression.

Declaration
public static void DerivedTypesMustRespectRegexNamingConvention(this IAspectReceiver<IDeclaration> receiver, string pattern, Func<ReferencePredicateBuilder, ReferencePredicate>? exclusions = null)
Parameters
Type Name Description
IAspectReceiver<IDeclaration> receiver
string pattern
Func<ReferencePredicateBuilder, ReferencePredicate> exclusions