Code inspection: Redundant 'is'
This inspection reports a relational pattern wrapped in an unnecessary is expression.
Example
For numeric comparisons, the equivalent relational operator is usually shorter and easier to read.
if (x is (<= 10))
{
}
if (x <= 10)
{
}
Quick-fix
Remove the redundant is and convert the pattern to a direct comparison.
29 March 2026