Open Menur opened 2 years ago
You should be able to around this by creating parameterless constructors in another partial class
-file which initialize the properties you need.
The proper solution would be to leverage init properties along with C#11 required attribute
Version
Issue
Reference types with
nullable: false
are not generated as proper nullable reference types and throw NullReferenceExceptionExpected
Example