Monthly Archive: June 2023

C# 12 new features 0

C# 12 new features

Primary constructors for non-record classes and structs In C# 11 and earlier, non-record classes and structs could only be initialized using the default constructor. This meant that you had to explicitly initialize all of...