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: Convert constructor into primary constructor

Last modified: 14 May 2024

This inspection suggests using the C# 12 syntax of primary constructors for types that have a single public constructor. Primary constructor syntax improves readability and makes your code more concise.