Skip to content

Semantics of RealmObjectBase.OnPropertyChanged() #3230

Answered by nirinchev
bdach asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, no, that's not the intended use of OnPropertyChanged. Instead, the intention there is to allow you to raise property change notifications in situations where you have a computed property that depends on persisted properties.

I'm not sure I fully understand your requirement though - you're saying every time BeatmapHash is changed, you want to disregard the change and replace it with the value from BeatmapInfo.Hash? Is this to avoid people setting an incorrect value there or?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@peppy
Comment options

@nirinchev
Comment options

@peppy
Comment options

@bdach
Comment options

@nirinchev
Comment options

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