The INotifyPropertyChanged is obviously very useful in the view model for data binding to the view. Should I also use this interface in other parts of my application (e.g. in the business layer) when I want notifications of property changes, or I am better off using other notification mechanisms? I realize that there is nothing stopping me from using it, but are there any reasons that I shouldn’t?
The INotifyPropertyChanged is obviously very useful in the view model for data binding to
Share
INotifyPropertyChangedis not very explicit and it is error prone, since you somehow need to specify by string the property that changed, potentially becoming stale information when you refactor said property to a different name. If it is your class that consumes some notification I think it makes a lot more sense to be more explicit about it and state what changes.