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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top