When I implement INotifyPropertyChanged does the code using the event use reflection to fish out the value from the actual property? Or use it use something other than reflection like IL emit?
When I implement INotifyPropertyChanged does the code using the event use reflection to fish
Share
No, because the
PropertyChangedEventArgsraised by the event only contains the sender of the event and the name of the property which changed on the sender. If you would like access to the old or new value, you must retrieve them on your own.As for what the Framework uses to determine what the value is currently, that will depend on the context used (one option is a
PropertyDescriptorfrom aTypeDescriptor).