Why is an explicit `this` constructor initializer required in records with a primary constructor?

前端 未结 0 447
萌比男神i
萌比男神i 2020-12-13 09:02

In C# 9 we can create positional records causing them to get a constructor, which the spec draft calls a primary constructor. We can create a custom constructor as well, but

相关标签:
回答
  • 消灭零回复
提交回复
热议问题