C#C
C#2y ago
25 replies
Tantrim

INotifyPropertyChanged

I have a List<ClassSpecModel> and I attach the property changed event like below in the image. I only have 1 "active" ClassSpecModel at a time that I make changes to.

My question is, when I swap to a different ClassSpecModel in the list, and I attach the ClassSpecModel.PropertyChanged like shown in the image to the new ClassSpecModel, does the original ClassSpecModel.PropertyChanged become orphaned that I originally attached? Do I need to detach the ClassSpecModel.PropertyChanged in the original ClassModelObject

Please let me know if this is clear or not, thanks.
image.png
Was this page helpful?