[Mono-bugs] [Bug 76685][Min] Changed - [/doc] XML doc does not support reference to indexer.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Nov 13 17:56:51 EST 2005


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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=76685

--- shadow/76685	2005-11-13 14:25:30.000000000 -0500
+++ shadow/76685.tmp.15889	2005-11-13 17:56:51.000000000 -0500
@@ -139,6 +139,46 @@
 The bug itself is fixed in svn (r52972). I also have a patch that
 fixes the error message, but I need others' review since it is
 typemanager.cs and may affect on elsewhere.
 
 ------- Additional Comments From atsushi at ximian.com  2005-11-13 14:25 -------
 http://lists.ximian.com/pipermail/mono-devel-list/2005-November/015717.html
+
+------- Additional Comments From gert.driesen at pandora.be  2005-11-13 17:56 -------
+Atsushi,
+
+Apparently, a non-qualified reference to an indexer (using 
+<type>.this, eg. A.this) results in a different cref usng mcs than 
+when compiled using csc.
+
+For example, when you compile this code snippet:
+
+/// <summary>
+///   <para><see cref="A.this" /></para>
+/// </summary>
+public class Test
+{
+  static void Main()
+  {
+  }
+
+  private class A
+  {
+    public object this[int index] {
+      get { return null; }
+    }
+
+    public object this[string index] {
+      get { return null; }
+    }
+  }
+}
+
+then the resulting cref in the generated XML doc will be
+
+P:Test.A.Item(System.String)   using mcs
+
+and
+
+P:Test.A.Item(System.Int32)    using csc
+
+Again, let me know if you want a separate bug report for this.


More information about the mono-bugs mailing list