MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​AspectsDerived­Types­Must­Respect­Regex­Naming­Convention­Attribute
Open sandboxFocus

DerivedTypesMustRespectRegexNamingConventionAttribute Class

Aspect that, when applied to a type, reports a warning for any derived type that does not respect a naming convention given as regular expression.

Inheritance
System.Object
DerivedTypesMustRespectRegexNamingConventionAttribute
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public class DerivedTypesMustRespectRegexNamingConventionAttribute : TypeAspect, IAspect<INamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<INamedType>

Constructors

Name Description
DerivedTypesMustRespectRegexNamingConventionAttribute(String)
DerivedTypesMustRespectRegexNamingConventionAttribute(String, String)

Properties

Name Description
DisplayPattern
ExclusionPredicateType

Gets a System.Type, derived from ReferencePredicate, that determines exclusions for the current architecture rule. Specifically, no warning will be reported if the IsMatch(in ReferenceValidationContext) method of the ReferencePredicate returns true. This type must have a default constructor.

RegexPattern

Methods

Name Description
BuildAspect(IAspectBuilder<INamedType>)
ToString()