Closed bernardnormier closed 3 months ago
As a follow-up to #4022, we should consider generating required for struct fields too.
See: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members
After experimenting with the syntax, I think it's indeed better to generate required for non-nullable reference struct fields.
required
As a follow-up to #4022, we should consider generating required for struct fields too.
See: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members