[Mono-bugs] [Bug 69140][Maj] New - Exception in reflection call with byref parameters
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Nov 2004 12:45:16 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lluis@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=69140
--- shadow/69140 2004-11-05 12:45:15.000000000 -0500
+++ shadow/69140.tmp.19577 2004-11-05 12:45:16.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 69140
+Product: Mono: Runtime
+Version: 1.1
+OS: SUSE 9.1
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lluis@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Exception in reflection call with byref parameters
+
+I get an ArgumentException when using reflection to call a method that
+takes a byref parameter. For example:
+
+using System;
+using System.Reflection;
+
+public class CCC
+{
+ public static void Main ()
+ {
+ MethodInfo met = typeof(CCC).GetMethod ("Test");
+ object[] parms = new object[] {1};
+ met.Invoke (null, parms);
+ }
+
+ public static void Test (ref int a1)
+ {
+ }
+}
+
+This is a recent regression.