C# 11 required Keyword with [ObservableProperty]? #634
|
Is there any current way to use the C# 11 required keyword with [ObservableProperty]? Trying something in the style of: [ObservableProperty] private required string _writtenFile; Results in an error because the private modifier is less visible the the containing type (in my case the class is public). Thanks for any information! |
Answered by
Sergio0694
Mar 9, 2023
Replies: 1 comment
|
That's not supported, as |
0 replies
Answer selected by
Sergio0694
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's not supported, as
requiredis only valid on properties. It will be supported by #555 🙂