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: Double negation operator

Last modified: 11 February 2024

Double negation, such as writing !!something is meaningless and can be safely removed. The only exception would be types such as DBbool where the negation operator is overloaded.