ReSharper 2026.1 Help

Code inspection: The tuple element name is ignored because a different name or no name is specified on the other side of the tuple == or != operator.

This inspection reports a tuple element name that is ignored in a == or != comparison because the tuple on the other side uses different names, or no names at all. Tuple equality compares values by position. If the names on one side do not match the other side, those names are not part of the comparison and can be misleading.

Example

bool same = (name: "Alice", surname: "Smith") == (first: "Alice", last: "Smith");
bool same = (name: "Alice", surname: "Smith") == (name: "Alice", surname: "Smith");

Quick-fix

Depending on the situation, the quick-fix can either rename the tuple element to match the other side or remove the ignored name.

21 April 2026