Fody/PropertyChanged

Compile error when using OnChangedMethod in base class

jmartschinke opened this issue · 1 comments

When you use OnChangedMethodAttribute on a property of a base class a compile error occures in the derived classes:

Fody: The type PropertyChangedBug.Problem.DerivedClass does not have a valid On_PropertyName_Changed method named ProcessPropertyWasChanged)

I have uploaded a repository to show this behaviour here.

In Working.cs you can see that in order to be compiled, you have to make the On_PropertyName_Changed method virtual and override it in the derived class.

Wow, that was quick, thank you very much!