How to avoid implementing INotifyPropertyChanged manually

后端 未结 7 1687
名媛妹妹
名媛妹妹 2021-01-05 02:44

Is there some way to avoid this. I have a lot of classes that are bound to DataGridViews and they are just simple collection of properties with default getter and setter. So

7条回答
  •  再見小時候
    2021-01-05 03:05

    Using code gen (say, T4) is another way. Check the discussion at: Automatic INotifyPropertyChanged Implementation through T4 code generation?.

    I use this method, and it works well.

提交回复
热议问题