Indexer and Items property

  • Thread starter Thread starter Dotnetjunky
  • Start date Start date
D

Dotnetjunky

Hi all

Is it correct that there's a link between indexer and Items property in C# ?
If yes, please show me what is it ?

thanks in advance.
 
An indexer is only a C# concept. If you look at the compiled assembly in
ildism, what you see is that the indexer has been converted to the Item
property. An since properties are nothing more than get and set methods
what accept parameters, the value that is passed into the indexer is that
same value that will be passed into the get_Item and set_Item methods.
 
Back
Top