Fody/PropertyChanged

Overridden properties do not notify about dependent properties

DaleStan opened this issue · 0 comments

Given

public abstract class Base : INotifyPropertyChanged
{
    public abstract bool Foo { get; set; }

    public event PropertyChangedEventHandler PropertyChanged;
}

public class Derived : Base
{
    public override bool Foo { get; set; }
    public bool Bar => !Foo;
}

Bar is not detected as depending on Foo. The expected behavior is that the setter for Foo should have injected notification code for both Foo and Bar.

I'm about to create a PR with code changes and tests that make this work the way I think it should.