JetBrains Rider 2026.1 Help

代码检查:Simplify 否定模式

此检查会报告否定另一个否定模式的模式。 这会让代码更难阅读,但不会改变结果。

示例

if (o is not not string) { }
if (o is string) { }

快速修复

从模式中移除双重否定。

2026年 5月 8日