Click here to Skip to main content
16,021,125 members

Comments by benjamine (Top 1 by date)

benjamine 1-Jun-10 9:38am View    
The answer is here:
http://social.msdn.microsoft.com/forums/en-US/csharplanguage/thread/dbd2b263-824c-4f5b-ba18-2f6d117c8ad1/

C# creates an "Item" property automatically for indexers, but you can override it's name using an Attribute:

[System.Runtime.CompilerServices.IndexerName("MyItems"]
public Item this[int row, int col] { ... }