Why is the C# 9.0 “with expression” exclusive to records?

前端 未结 0 779
攒了一身酷
攒了一身酷 2021-01-01 05:27

Reading through the spec for C# 9.0 I came across record and the new with expression. Immediately I thought this was great for all my immutable structs, such as

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