Summary
Ship behaviors that raise INotifyPropertyChanging and INotifyPropertyChanged from property setters. Skip both events when the incoming value equals the current value.
API
The stunt implements the notify interfaces through the existing extra-interface arguments, Stunt.Of<T, T1..T8>. The behavior raises the events on that instance. It does not subscribe to anything.
Behavior
- Only
set_ accessors notify.
- Raise
PropertyChanging before next, and PropertyChanged after a successful set.
- An equal value does not call
next and does not raise either event. Compare with Equals.
- A setter that throws does not raise
PropertyChanged.
Acceptance
- Assigning a new value raises Changing, then Changed, with the property name, and the setter runs once.
- Assigning the current value raises neither event and does not call the setter.
Stunt.Of<T, INotifyPropertyChanged>() can be cast to INotifyPropertyChanged and observed.


Summary
Ship behaviors that raise
INotifyPropertyChangingandINotifyPropertyChangedfrom property setters. Skip both events when the incoming value equals the current value.API
The stunt implements the notify interfaces through the existing extra-interface arguments,
Stunt.Of<T, T1..T8>. The behavior raises the events on that instance. It does not subscribe to anything.Behavior
set_accessors notify.PropertyChangingbeforenext, andPropertyChangedafter a successful set.nextand does not raise either event. Compare withEquals.PropertyChanged.Acceptance
Stunt.Of<T, INotifyPropertyChanged>()can be cast toINotifyPropertyChangedand observed.