Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INotifyPropertyChanged support #4

Open
KuroThing opened this issue Apr 5, 2017 · 2 comments
Open

INotifyPropertyChanged support #4

KuroThing opened this issue Apr 5, 2017 · 2 comments
Assignees

Comments

@KuroThing
Copy link

It would be nice that when the Object implements the INotifyPropertyChanged interface, that it subscribes to the interface and updates the Json text when the property has changed.

@KuroThing
Copy link
Author

Any update on this? It would be a great feature to have since it would mean that a quick wrap of collections like Dictionry<TKey, TValue> or List<TType> to call the PropertyChanged event, and in return solve the awkward issue of updating collections....

Unless there is an alternative to taking the collection, modifying it, and setting the object itself as the collection again...

@lauxjpn lauxjpn self-assigned this Jan 24, 2020
@lauxjpn
Copy link
Contributor

lauxjpn commented Jan 24, 2020

The Json and Object properties are synchronized, so if one is changed, the other one is updated accordingly.

I don't think it should be the responsibility of JsonObject to inform potential observers of changes. If your application needs to be informed about changes, you are responsible to track them, as you are with any other type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants