草庐IT

NotifyPropertyChangedInvocator

全部标签

c# - 实现 INotifyPropertyChanged 时,C# 中的 [NotifyPropertyChangedInvocator] 是什么?

我看到了INotifyPropertyChanged的两种实现方式第一个:publicabstractclassViewModelBase:INotifyPropertyChanged{publiceventPropertyChangedEventHandlerPropertyChanged;protectedvirtualvoidOnPropertyChanged([CallerMemberName]stringpropertyName=null){PropertyChangedEventHandlerhandler=PropertyChanged;if(handler!=null)