Closed michaldivis closed 4 months ago
I like the solution with the IncludeInheritedMembers
option! If this is urgent, you could look into opening a PR, I will probably only get to it sometime this month.
I already solved the problem by implementing my own source generator for it but I'll try to find time to open a PR here as well.
@michaldivis I have started working on this now.
Available in v2.4.0
@CollinAlpert Thanks a lot!
Is your feature request related to a problem? Please describe. I'd like to use this library to generate With methods for a class that inherits from a base class, however, I only get With methods generated for the members of the class I apply the attribute on.
This of course wouldn't be a problem if I owned the base class, but that is not the case as the base class comes from an external library.
Describe the solution you'd like Optionally allow to generate With methods on inherited members.
I image it could be a property on the
WithAttribute
, something like:Describe alternatives you've considered An alternative solution would be to apply the
WithAttribute
to the base class, but as mentioned before, that's not possible in my case.