Skip to content

Where was the design discussion for ObservablePropertyAttribute? #554

Answered by Sergio0694
symbiogenesis asked this question in Q&A
Discussion options

You must be logged in to vote

You can find the original issue and plenty of discussions here: #8. The TLDR is: we'd much rather use properties, but unfortunately C# just doesn't support partial properties yet, so using fields is the best we could do. Assuming C# 12 does get partial properties (see dotnet/csharplang#6420), I do plan to add support for using [ObservableProperty] on properties too, for sure. Hope this helps! 🙂

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Sergio0694
Comment options

You must be logged in to vote
1 reply
@symbiogenesis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants