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 ;
2
2
using System . Collections . Generic ;
3
3
using System . ComponentModel ;
4
4
using System . Linq . Expressions ;
@@ -50,8 +50,8 @@ private void SubscribeListeners(Expression? propertyExpression)
50
50
object ? propOwnerObject = constantExpression . Value ;
51
51
52
52
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.") ;
55
55
56
56
propObserverNodeRoot . SubscribeListenerFor ( inpcObject ) ;
57
57
}
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . ComponentModel ;
3
3
using System . Reflection ;
4
4
@@ -42,8 +42,8 @@ private void GenerateNextNode()
42
42
var nextProperty = PropertyInfo . GetValue ( _inpcObject ) ;
43
43
if ( nextProperty == null ) return ;
44
44
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.") ;
47
47
48
48
Next ? . SubscribeListenerFor ( nextInpcObject ) ;
49
49
}
You can’t perform that action at this time.
0 commit comments