Simplest way to achieve automatic notification of property change

后端 未结 6 562
时光说笑
时光说笑 2020-12-04 13:34

I know that there are solutions out there for implementing INotifyPropertyChanged, but none of them are as simple as: reference this library, create/add this attribute, done

6条回答
  •  萌比男神i
    2020-12-04 14:09

    There is a project called Polymod. Which offers what you are looking for. It does have some some cool features such as defining self-updating formulas. E.g. If Sum = A + B, then PropertyChanged is called on Sum when A or B is changed.

    It also works with Rules Engine out-of-the-box to give you validation as well. Because it is extensible, it is possible to use other Validation Frameworks as well.

    Aspect-Orientated programming at its best!

提交回复
热议问题