ReSharper 2026.1 Help

Code inspection: Similar expressions comparison

This inspection reports comparisons where both sides are effectively the same expression. Such comparisons usually have a constant result and often indicate a typo or copy/paste mistake.

Example

if (value == value) { DoWork(); }
if (true) { DoWork(); }
01 April 2026