CheekyTinker
11-17-2005, 02:17 PM
Is there are known issue with using AOP to intercept method calls where the method has ref params.
I've found the call gets intercepted but I get an exception when I call proceed or try to access any of the IMethodInvoke properties etc. I've only tested a method with a single param which is a ref. My workaround has been to refactor my code to remove the ref param, returning the object instead, but I'd like to know if this is a genuine restriction, something I'm doing wrong or a bug.
Thanks
I've found the call gets intercepted but I get an exception when I call proceed or try to access any of the IMethodInvoke properties etc. I've only tested a method with a single param which is a ref. My workaround has been to refactor my code to remove the ref param, returning the object instead, but I'd like to know if this is a genuine restriction, something I'm doing wrong or a bug.
Thanks