What’s the point in using classes now c# 9 has introduced records

前端 未结 0 690
自闭症患者
自闭症患者 2020-12-01 18:01

Given that records add boilerplate code especially IEquatable and don’t have to be init only, what’s to gain from using classes when you can get;set in records as shown belo

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