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

Code inspection: Redundant empty argument list on object creation expression

Last modified: 08 April 2024

In C#, when you create a new instance of a class and immediately initialize it using a collection initializer (the part in the curly braces), you don't need to include the parentheses after the class name.

Therefore ReSharper suggests removing the redundant parentheses to make your code cleaner and more concise.