bonk,
I believe that the compiler first looks for the property with the
IndexerNameAttribute. Failing that, I think it will then look for a
property which has the name "Item" (I am pretty shaky on this, but it's the
most prominent thought in my mind right now on the subject).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"bonk" <sc******************@gmx.de> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...
Hello,
IL does not have indexers. Infact the c# compiler compiles indexers to
Set_Item and Get_Item (or whatever name I choose via the
IndexerNameAttribute ).
So how does c# (compiler) know that something in a IL Assembly is supposed
to be an indexer ?
And more important, what ways do I have to influence that ?