JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Code inspection: Simplify negative equality expression

Last modified: 11 February 2024

Negating an equality expression is, effectively, the same as ‘flipping’ the equality operator from == to != or the other way around. That way, if you write !(a == b), JetBrains Rider will offer the option to change it to a != b.