
Primary Constructors with C#
To reduce the syntax needed when writing C# code, C# 9 added records with primary constructors. C# 10 then added records for structs. Using C# 12 you can create classes with primary constructors. This article explains the *primary constructor* syntax and shows the differences between class records, struct records, and normal classes. Continue reading Primary Constructors with C#