Inheritance and DependsOn() Not working...
See original GitHub issueHi,
i have an issue about Inheritance. Imagine this :
[ImplementPropertyChanged]
public class a1
{
public string a { get; set; }
[DependsOn("a")]
public string b => this.a + " LAURE ";
}
It’s working well. But now imagine this :
` [ImplementPropertyChanged]
public class a1
{
public string a { get; set; }
}
// Change nothing : [ImplementPropertyChanged]
public class a2 : a1
{
[DependsOn("a")]
public string b => this.a + " LAURE ";
}
The second case is not working (my binding is never notified). “a” is not found by Fody.PropertyChanged compilator (a warning say it) so it ignor it… Any solution ? Or any way to call it manually ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Spring @DependsOn inheritance behavior - java
So I've tried to put @DependsOn('b') to the abstract A -class only, but it didn't work: probably this annotation is not inherited. So...
Read more >DependsOn project target does not work as expected #16138
The issue seems to be that DependsOn does not support specifying a specific project and target as a depends on. I may be...
Read more >Cascade, specificity, and inheritance - Learn web development
Often, the problem is that you create two rules that apply different values of the same property to the same element. Cascade and...
Read more >Authoring Tasks
These methods accept a task instance, a task name or any other input accepted by Task. dependsOn(java. lang. Object...).
Read more >Declaring dependencies
Type-safe project dependencies One issue with the project(":some:path") notation is that you have to remember the path to every project you want to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sorry but the parent class should not know about child property notifications.
Another simple example of what i mean
What should be generated ;