operator [] method

List<T> operator [](
  1. int index
)

Override [] operator for direct access to data

Implementation

List<T> operator [](int index) => data[index];