Export to GitHub

linfu - issue #15
Linfu dynamic proxy 1.0.x always returns null for out or ref paramter
Posted on Apr 7, 2009 by
Quick Dog
Linfu dynamic proxies do not handle methods with out or ref parameters correctly. Calls to such methods will always return null for these parameters. The affected file is LinFu.DynamicProxy\DefaultMethodEmitter.cs
Method SaveRefArguments Line 143: bool isRef = param.ParameterType.IsByRef && typeName.EndsWith("&");
correct would be: bool isRef = param.ParameterType.IsByRef && param.ParameterType.Name.EndsWith("&");
Comment #1
Posted on Apr 13, 2009 by Massive Bird(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium