[Mono-dev] correction to previous submission -- MethodInfo.Invoke throws exception when a null is passed into a by ref arg]

Federico Evers nlv13926 at natlab.research.philips.com
Thu Jun 21 09:19:08 EDT 2007

I apologize for the previous submission... that one does compile and 
execute fine in both mono and .NET.... It looks like the problem is when 
I use Method.Invoke to invoke a method where one of the arguments is a 
generic by reference (i.e.   TestMethod(ref List<string> list)).....

When trying to invoke a method through reflection in which one of the 
argument is a generic by ref ,mono will throw a null reference 
exception.  .NET on the other hand does not. Consider the attached 

gmcs test.cs

Federico Evers

Philips Research / Software Engineering Services
High Tech Campus 34 (4-062) 
5656 AA Eindhoven 
The Netherlands
Tel: +31 (0) 402 747599
Email: nlv13926 at natlab.research.philips.com

TOPIC Embedded Systems
Eindhovenseweg 32C
5683 KH Best
The Netherlands
Tel: +31 (0) 499 336979
Fax: +31 (0) 499 336970
Email: federico.evers at topic.nl

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070621/ccb7fd5b/attachment.pl 

More information about the Mono-devel-list mailing list