Open WolfgangKluge opened 10 months ago
Have you tried either declaring Base.Test
virtual, or letting your Base
class implement I
?
Then I tried to intercept this method as well and pass the arguments to the base class, but I'm not able to do that in an easy way
How did you attempt to do this, and in what way was it not easy?
I want to create a proxy from an interface where some methods are already defined by a base class.
E.g.
My proxy should look like that (without
Test
).But the proxy will always have it's own method
Test
(no matter what the return value from anIProxyGenerationHook
is).Then I tried to intercept this method as well and pass the arguments to the base class, but I'm not able to do that in an easy way (I think from here it's quite the same as #647).
So my question is: is there a way to filter the methods that have to be generated by the proxy builder (at least on those methods that are already defined by
BaseTypeForInterfaceProxy
)?Another solution would be to modify the generated proxy code to something like
whenever
Test
should not be intercepted as ofIProxyGenerationHook
and there is such a method in one of the base types.Is there a way to hook into the generation process (with more possibilities than now)?