How to use expression bodied syntax to call constructor chain

后端 未结 0 738
情深已故
情深已故 2020-12-09 20:29

Expression bodied members feature in C# now allows us to write a constructor as

public Student(string fName, string lName) => (fName, lName) = (firstName,          


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