ReSharper 2026.1 Help

Code inspection: Nullable warning suppression operator might be confused with inverted 'is' expression

This inspection reports code that looks like an inverted is expression but actually applies the null-suppression operator ! to the left operand. That syntax is easy to misread and can hide the real intent of the code.

Example

if (value! is string) { }
if (value is not string) { }

Quick-fix

The quick-fix rewrites the code as an actual inverted type check.

01 April 2026