How do I define additional initialization logic for the positional record?

后端 未结 0 513
北荒
北荒 2021-01-14 10:40

I would like to validate parameters used for record initialization and thro, if validation fails. For regular class I could use constructor for that, but how should I do it

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