Indexers

Mikael Olsson · Apress eBooks · 2022

Indexers allow an object to be treated as an array. They are declared in the same way as properties, except that the this keyword is used instead of a name and their accessors take parameters. In the following example, the indexer corresponds to an object array called data, so the type of the indexer is set to object:

Read the paper · More papers on PaperTik