[Mono-bugs] [Bug 64943][Nor] New - Type.GetMethod(s) and Type.GetPropert(y/ies) mono results differ from .Net results

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 31 Aug 2004 12:12:01 -0400 (EDT)

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 priewasser@gmx.at.


--- shadow/64943	2004-08-31 12:12:01.000000000 -0400
+++ shadow/64943.tmp.31845	2004-08-31 12:12:01.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 64943
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: priewasser@gmx.at               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Type.GetMethod(s) and Type.GetPropert(y/ies) mono results differ from .Net results
+Description of Problem:
+The methods Type.GetMethods Type.GetMethod Type.GetProperties and Type.
+GetProperty return other results using mono than using .Net
+This program should find the Indexer of the type "System.Array":
+using System;
+using System.Reflection;
+public class C{
+  public static void Main(){
+    Type t=Type.GetType("System.Array");
+    PropertyInfo pi=t.GetProperty("System.Collections.IList.Item",
+      BindingFlags.NonPublic|BindingFlags.Instance);
+    Console.WriteLine(pi);
+  }
+using mono, no Property is found
+using .Net a Property is found: 
+System.Object System.Collections.IList.Item [Int32]
+Additional Information:
+returns following methods which are not returned by .Net:
+IntPtr obj_address()
+Void FieldGetter(System.String, System.String, System.Object)
+Void FieldSetter(System.String, System.String, System.Object)