Indexers
Learn to work with classes as if they were arrays.
We'll cover the following...
Introduction
Indexers are special constructs that allow us to access an object’s content through an index. It adds an array-like behavior to custom types.
For example, to access the second item of an array, we use an index, 1
:
int[]
...