operator[]()

Collection::operator method

Gets value at specified index.

T & System::Collections::ObjectModel::Collection<T>::operator[](int index)

Arguments

ParameterTypeDescription
indexintIndex to get value from.

Return Value

Reference to existing value at specified index.

Collection::operator const method

Gets value at specified index.

const T & System::Collections::ObjectModel::Collection<T>::operator[](int index) const

Arguments

ParameterTypeDescription
indexintIndex to get value from.

Return Value

Const reference to existing value at specified index.

See Also