Can static methods be intercepted with Castle DynamicProxy?
And if so, how?
Can static methods be intercepted with Castle DynamicProxy?
And if so, how?
No, Castle DynamicProxy can only proxy types and members that you could have written proxies for by hand, it uses runtime code generation and must comply with the constraints of the CLR.
The DynamicProxy documentation describes the two general forms of proxy objects it supports, inheritance and composition-based.