Code inspection: Redundant 'Attribute' suffix
This inspection arises from a common C# convention where the Attribute
suffix is omitted when applying an attribute to a code element.
In C#, it is not necessary to include the Attribute
part when decorating symbols with attributes. For example, instead of writing [NotNullAttribute]
, you can write [NotNull]
. The change has no impact on performance or functionality but improves clarity and readability of the code.
Last modified: 05 June 2024