Forum Discussion
chichepo
2 years agoChampion Level 1
Hi alexossisos
...
The generated constructor checks to make sure that the corresponding constructor parameter is not null, which is good,
....
indeed, for format "date" or"date-time", null will be always checked, whenever you specify nullable true or false.
|
...
, but this still leaves open the possibility that the property could be subsequently inadvertently modified to be null. And all consuming code will not know that this is a required field.
...
I may not understand your statement but, a required property, can be both null and required.
I'll try later to answer to some of the "bonus" questions if you are still keeping it in the same thread. (I would suggest you to create a separate one anyway)
😉
Related Content
- 5 years ago
Recent Discussions
- 12 days ago