waoywssy / linfu

Automatically exported from code.google.com/p/linfu
0 stars 0 forks source link

Linfu dynamic proxy 1.0.x always returns null for out or ref paramter #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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("&");

Original issue reported on code.google.com by marcel.d...@parallel.ch on 7 Apr 2009 at 9:32

GoogleCodeExporter commented 9 years ago

Original comment by Philip.L...@gmail.com on 13 Apr 2009 at 5:28