Metalama//API Documentation/Extensions API/Metalama.​Extensions.​Architecture.​Fabrics/Verifier­Extensions/Derived­Types­Must­Respect­Naming­Convention
Open sandboxFocus

Method DerivedTypesMustRespectNamingConvention

DerivedTypesMustRespectNamingConvention(ITypeSetVerifier<IDeclaration>, String)

Reports a warning when any type that inherits any type in the current scope 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 ITypeSetVerifier<IDeclaration> setVerifier, string pattern)
Parameters
Type Name Description
ITypeSetVerifier<IDeclaration> setVerifier
String pattern