JetBrains Rider
 
2024.3
Get JetBrains Rider

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.