operator [] method

TComplexProperty operator [](
  1. int index
)
Gets the property at the specified index. The zero-based index of the property to get.

Implementation

TComplexProperty operator [](int index) {
  if (index < 0 || index >= length) {
    throw RangeError.range(
      index,
      0,
      length,
      "index",
      "Strings.IndexIsOutOfRange",
    );
  }

  return _items[index];
}