Implementing INotifyPropertyChanged - does a better way exist?

前端 未结 30 2620
感情败类
感情败类 2020-11-21 05:23

Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get; set; notify;} I

30条回答
  •  被撕碎了的回忆
    2020-11-21 05:52

    I think people should pay a little more attention to performance; it really does impact the UI when there are a lot of objects to be bound (think of a grid with 10,000+ rows), or if the object's value changes frequently (real-time monitoring app).

    I took various implementation found here and elsewhere and did a comparison; check it out perfomance comparison of INotifyPropertyChanged implementations.


    Here is a peek at the result Implemenation vs Runtime

提交回复
热议问题