[Mono-bugs] [Bug 73972][Wis] New - using reflection with out parameters
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Mar 2005 11:03:47 -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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73972
--- shadow/73972 2005-03-22 11:03:47.000000000 -0500
+++ shadow/73972.tmp.8589 2005-03-22 11:03:47.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 73972
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: using reflection with out parameters
+
+Description of Problem:
+Mono seems not to care about "out"s when reflecting.
+
+
+Steps to reproduce the problem:
+1. Compile this sample code
+
+using System;
+using System.Reflection;
+using System.Threading;
+
+class Program {
+
+ static void Main ()
+ {
+ // looking for "public Mutex (bool initiallyOwned, string name, out bool
+createdNew)"
+ Type[] parameters = new Type [3] { typeof (bool), typeof (string), typeof
+(bool) };
+ ConstructorInfo ci = typeof (Mutex).GetConstructor (parameters);
+ if (ci == null)
+ Console.WriteLine ("found nothing");
+ else
+ Console.WriteLine ("found something");
+ }
+}
+
+2. Execute on Mono runtime (I used HEAD)
+3. Execute on MS runtime
+
+
+Actual Results (mono runtime):
+
+% mono reflctor.exe
+found something
+
+
+Expected Results (MS runtime):
+
+reflctor.exe
+found nothing
+
+
+How often does this happen?
+Always
+
+Additional Information:
+Tested only with constructors but this probably affects methods as well.