[Mono-bugs] [Bug 33430][Wis] Changed - DefaultMemberAttribute doesn't let me use "Item" on DataRowView

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Nov 2002 17:01:25 -0000

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 danmorg@sc.rr.com.


--- shadow/33430	Thu Nov  7 08:23:40 2002
+++ shadow/33430.tmp.27157	Fri Nov  8 12:01:25 2002
@@ -1,14 +1,14 @@
 Bug#: 33430
 Product: Mono/Class Libraries
 Version: unspecified
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: danmorg@sc.rr.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -31,6 +31,14 @@
 2,3): error CS0646: Cannot specify the DefaultMember attribute on type 
 g an indexer
 What is the problem?
+------- Additional Comments From danmorg@sc.rr.com  2002-11-08 12:01 -------
+you should use [IndexerName("Item")] on the indexer
+the compiler generates the DefaultMemberAttribute from that
+for an example, see String.cs
+the IndexerName is "Chars"
+(thanks to Gonzalo for this answer)