{"issue":{"title":"Intercepting methods with ref and out parameters","user":{"login":"ManfredLange","id":1130812,"url":"https://api.github.com/users/ManfredLange","gravatar_id":"2944d56d2cfa1e8d7a8d075e9b7b1eb8","avatar_url":"https://secure.gravatar.com/avatar/2944d56d2cfa1e8d7a8d075e9b7b1eb8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-27T23:51:11Z","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-28T04:43:11Z","id":2667443,"closed_at":"2011-12-28T04:43:11Z","html_url":"https://github.com/ninject/ninject.extensions.interception/issues/5","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"It appears that the 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):\r\n\r\n```csharp\r\npublic virtual void Foo(ref Guid guid) { ... }\r\n```\r\nBy the same token the following can be intercepted:\r\n\r\n```csharp\r\npublic virtual void Foo(Guid guid) { ... }\r\n```\r\n\r\nWith code modification in DynamicMethodFactory.CreateInvoker() using example code from downloadable source code at http://www.codeproject.com/KB/cs/FastMethodInvoker.aspx?msg=2523854\r\nthe above can be correctly intercepted for both ref and out parameters.\r\n\r\nAre 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. Without this support this limits the set of signatures that can be used for methods that can be intercepted.","number":5,"url":"https://api.github.com/repos/ninject/ninject.extensions.interception/issues/5","comments":1,"assignee":null},"action":"closed"}