You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .NET framework class library provides methods for retrieving custom attributes. Sealing the attribute eliminates the search through the inheritance hierarchy, and can improve performance.
This rule raises an issue when a public type inherits from System.Attribute, is not abstract, and is not sealed.
See S4060
Description
The .NET framework class library provides methods for retrieving custom attributes. Sealing the attribute eliminates the search through the inheritance hierarchy, and can improve performance.
This rule raises an issue when a public type inherits from System.Attribute, is not abstract, and is not sealed.
Noncompliant Code Example
Compliant Solution
The text was updated successfully, but these errors were encountered: