INotifyPropertyChanged property name - hardcode vs reflection?

前端 未结 16 1568
感动是毒
感动是毒 2020-11-28 05:13

What is the best way to specify a property name when using INotifyPropertyChanged?

Most examples hardcode the property name as an argument on the PropertyChanged E

16条回答
  •  感情败类
    2020-11-28 05:23

    Another VERY NICE method I can think of is

    Auto-implement INotifyPropertyChanged with Aspects
    AOP: Aspect oriented programming

    Nice article on codeproject: AOP Implementation of INotifyPropertyChanged

提交回复
热议问题