System::Collections::Generic::DictionaryPtr::operator[] method

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
ParameterDescription
XSource key type.
ParameterTypeDescription
keyconst X&Dictionary key.

ReturnValue

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

See Also

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

Access operator.

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

ReturnValue

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

See Also