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: Redundant lambda signature parentheses

Last modified: 08 April 2024

If a lambda expression has a single, implicitly typed parameter, parentheses are optional. They are necessary if there are two or more parameters.

JetBrains Rider suggests removing the redundant parentheses to improve code readability: