Closed gaufung closed 2 weeks ago
https://andrewlock.net/thoughts-about-primary-constructors-3-pros-and-5-cons/
Primary Constructor 是 C# 12 引入的新的语法糖,其中的好和坏作者都做出的比较
Primary Constructor
C#
优势
劣势
readonly
Struct
https://andrewlock.net/thoughts-about-primary-constructors-3-pros-and-5-cons/