Closed aalmada closed 7 years ago
Hi @mikhailshilkov I updated this PR to include the changes from #10. I have in my project a case of inheritance. To use With.Fody, I have to break the inheritance and copy the properties to the other class. This PR would fix this. What do you think? Do you find any case that would be a regression?
Merged
This version works fine for my projects, no regression detected by tests. Well done!
Cecil ignores inherited properties so, With.Fody does not support inheritance. I added a GetAllProperties() that goes up the hierarchy to get all the properties. Added exception handling to gracefully step over any assembly resolution issue. Added the test cases Inheritance, that inherits from a class in the same assembly, and ReferenceInheritance, that inherits from a class in the ReferenceAssembly assembly.
Supports cases like this one: