File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . ComponentModel ;
44using System . Linq . Expressions ;
@@ -50,8 +50,8 @@ private void SubscribeListeners(Expression? propertyExpression)
5050 object ? propOwnerObject = constantExpression . Value ;
5151
5252 if ( propOwnerObject is not INotifyPropertyChanged inpcObject )
53- throw new InvalidOperationException ( "Trying to subscribe PropertyChanged listener in object that " +
54- $ "owns '{ propObserverNodeRoot . PropertyInfo . Name } ' property, but the object does not implements INotifyPropertyChanged.") ;
53+ throw new InvalidOperationException ( "Tried to subscribe to PropertyChanged in the object that " +
54+ $ "defines the '{ propObserverNodeRoot . PropertyInfo . Name } ' property, but the object does not implement INotifyPropertyChanged.") ;
5555
5656 propObserverNodeRoot . SubscribeListenerFor ( inpcObject ) ;
5757 }
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . ComponentModel ;
33using System . Reflection ;
44
@@ -42,8 +42,8 @@ private void GenerateNextNode()
4242 var nextProperty = PropertyInfo . GetValue ( _inpcObject ) ;
4343 if ( nextProperty == null ) return ;
4444 if ( nextProperty is not INotifyPropertyChanged nextInpcObject )
45- throw new InvalidOperationException ( "Trying to subscribe PropertyChanged listener in object that " +
46- $ "owns '{ Next ? . PropertyInfo . Name } ' property, but the object does not implements INotifyPropertyChanged.") ;
45+ throw new InvalidOperationException ( "Tried to subscribe to PropertyChanged in the object that " +
46+ $ "defines the '{ Next ? . PropertyInfo . Name } ' property, but the object does not implement INotifyPropertyChanged.") ;
4747
4848 Next ? . SubscribeListenerFor ( nextInpcObject ) ;
4949 }
You can’t perform that action at this time.
0 commit comments