What is [NotifyPropertyChangedInvocator] in C# when implements INotifyPropertyChanged?
问题 I see two types of implementation of INotifyPropertyChanged The first one: public abstract class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(propertyName)); } } } The second one: public abstract class ViewModelBase :