ReSharper 2024.1 Help

Code Inspection: Redundant name qualifier

Category

Redundancies in Code

ID

RedundantNameQualifier

EditorConfig

resharper_redundant_name_qualifier_highlighting

Default severity

Warning

Language

C#

Requires SWA

No

In C#, you can qualify instance members with this keyword, and qualify static members with type name or a base type name. These qualifiers help you disambiguate members hidden by local variables or method parameters. In all other cases, these modifiers are optional, and you can decide for yourself whether to use them or not. With ReSharper, you can configure your preferences for using optional modifiers and enforce these preferences.

By default, ReSharper treats all optional member qualifiers as redundant and suggests removing them.

Last modified: 15 April 2024