operator[]()

DictionaryPtr::operator[](const X&) const method

Access operator to work with key type conversion.

template<class X> V & System::Collections::Generic::DictionaryPtr<T, V>::operator[](const X &key) const

Template parameters

ParameterDescription
XSource key type.

Arguments

ParameterTypeDescription
keyconst X&Dictionary key.

Return Value

Reference to value corresponding to the key passed, existing or newly created.

DictionaryPtr::operator[](const T&) const method

Access operator.

V & System::Collections::Generic::DictionaryPtr<T, V>::operator[](const T &key) const

Arguments

ParameterTypeDescription
keyconst T&Dictionary key.

Return Value

Reference to value corresponding to the key passed, existing or newly created.

See Also