Code inspection: BaseTypeRequired attribute supports only classes and interfacesLast modified: 11 February 2024 Category: Constraints Violations ID: UnsupportedRequiredBaseType EditorConfig: resharper_unsupported_required_base_type_highlighting=[error|warning|suggestion|hint|none] Default severity: Warning Language: C# Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.The BaseTypeRequired attribute requires the type parameter to be a class or an interface. Consequently, applying it to value types is likely to lead to an error. For example, the following will generate a warning:struct Person { } [BaseTypeRequired(typeof(Person))] class FriendlyAttribute : Attribute { }