[Mono-bugs] [Bug 71297][Nor] New - Binder.SelectProperty should return null.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 18:58:58 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71297
--- shadow/71297 2005-01-14 18:58:57.000000000 -0500
+++ shadow/71297.tmp.13977 2005-01-14 18:58:57.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 71297
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Binder.SelectProperty should return null.
+
+In the following sample Binder.SelectProperty should return null:
+
+using System;
+using System.Reflection;
+
+class X {
+ class SingleIndexer {
+ public Type this [int i] {
+ get { return i.GetType (); }
+ }
+ }
+
+ static void Main ()
+ {
+ Type type = typeof (SingleIndexer);
+ Binder binder = Type.DefaultBinder;
+
+ PropertyInfo [] props = type.GetProperties (BindingFlags.DeclaredOnly |
+ BindingFlags.Public |
+ BindingFlags.Instance);
+
+ PropertyInfo prop = binder.SelectProperty (0, props, null, new Type [0],
+null);
+ if (prop != null)
+ Console.WriteLine ("Failure");
+
+ }
+}
+
+This is taken from our class lib tests.