Open nicomoya123 opened 3 years ago
Yeah I think it's possible, for the explicit generic argument ActLike.
As making the proxies is trivial source wise. just an object implementing an interface where each method is just forwarding the call to a dynamic typed _target. Just have to identify each place you use it.
What if a method is not implemented in the target class. In that case, ActLike can compile and run as long as you don't call it. But the source generator won't compile and you need to have an exact match?
I want to implement something similar to this package using the new source generators package, Do you think it will be possible ?