Skip to content

Commit

Permalink
Add warning to people who didn't implement INotifyPropertyChanging
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Feb 22, 2011
1 parent e720066 commit 03fe6ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactiveUI/MakeObjectReactiveHelper.cs
Expand Up @@ -19,6 +19,9 @@ public MakeObjectReactiveHelper(INotifyPropertyChanged hostObject)
if (hostChanging != null) {
hostChanging.PropertyChanging += (o, e) => _Changing.OnNext(
new ObservedChange<object, object>() { Sender = o, PropertyName = e.PropertyName });
} else {
this.Log().ErrorFormat("'{0}' does not implement INotifyPropertyChanging - RxUI may return duplicate change notifications",
hostObject.GetType().FullName);
}

hostObject.PropertyChanged += (o, e) => _Changed.OnNext(
Expand Down

0 comments on commit 03fe6ec

Please sign in to comment.