-
Say I have a class that has bunch of properties recording the program states. I want have this class serialized to XML and save it when any of its properties changed. I could do the following
Or automate that with a loop statement (with reflection). But is there are more elegant way to do so, for example, if I omit the first delegate, it'll default to bind all PropertyChanged event handler to
|
Beta Was this translation helpful? Give feedback.
Answered by
canton7
Oct 6, 2022
Replies: 1 comment 1 reply
-
Why not just subscribe to the PropertyChanged event directly? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mwdpb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not just subscribe to the PropertyChanged event directly?