ninject/ninject.extensions.interception — Issue #5: Intercepting methods with ref and out parameters
Author: ManfredLange
Created: 2011-12-27 23:51:11+00:00
State: open

It appears that newest set of sources does not support methods with ref or out parameters, e.g. trying to intercept the following will fail with VerificationException in certain scenarios (at least the ones I tested):

```csharp
public virtual void Foo(ref Guid guid) { ... }
```

With code modification in DynamicMethodFactory.CreateInvoker() using example code from downloadable source code at http://www.codeproject.com/KB/cs/FastMethodInvoker.aspx?msg=2523854
the above can be correctly intercepted for both ref and out parameters.

Are there any plans to add support for ref and out parameters to Ninject.Extensions.Interception? It appears as if none of the examples (e.g. tests) in this project use ref or out parameters. Cheers!