Is it possible to implement Property Changed as Attribute?

前端 未结 2 1284
渐次进展
渐次进展 2021-01-20 15:19

I have found an implementation of Propperty Changed Event, where i can Call Property changed without the Name of the Property in the web. And then i have build a Extension M

2条回答
  •  不知归路
    2021-01-20 15:30

    Check out Fody, and the PropertyChanged add-in. It will modify the IL after compilation to add the code to raise the PropertyChanged event for your properties. It's similar to PostSharp, mentioned in Lasse's answer, but it's free and open-source.

提交回复
热议问题