operator[]()

List::operator method

Accessor function.

vector_t::reference System::Collections::Generic::List<T>::operator[](int index)

Arguments

ParameterTypeDescription
indexintIndex to get element from.

Return Value

Reference to element at specified position.

List::operator const method

Accessor function.

vector_t::const_reference System::Collections::Generic::List<T>::operator[](int index) const

Arguments

ParameterTypeDescription
indexintIndex to get element from.

Return Value

Const reference to element at specified position.

See Also