I use NotifyPropertyWeaverMsBuildTask to handle NotifyPropertyChanged for automatic properties. I know OnPropertyChanged() method rise when Property value is changed. But when this method is called value of property is changed and old value is lost. Is there any way to get old value?
tanx.
If you want to use the old value inside the
OnPropertyChangedthen write it like thisThen if your code looks like this
This will be injected
More information is available here https://github.com/SimonCropp/NotifyPropertyWeaver/wiki/BeforeAfter
Does this meet your requirements?