代码检查:添加/移除静态成员的限定符
In C#, you can qualify instance members with the this keyword, and qualify static members with type name or a base type name. 这些限定符可以帮助您区分被 局部变量或 方法参数隐藏的成员。 In all other cases, these qualifiers are optional, and you can decide for yourself whether to use them or not. 使用 ReSharper,您可以配置使用可选修饰符的偏好并强制执行这些偏好。
默认情况下,ReSharper 将所有可选成员限定符视为冗余,并建议将其删除。
有关配置和强制执行可选成员限定符偏好的更多信息,请参阅 代码语法样式:可选成员限定符。
2026年 11月 6日