System::Collections::Generic::DictionaryPtr::operator[] 方法

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

访问运算符。

V & System::Collections::Generic::DictionaryPtr<T, V>::operator[](const T &key) const
参数类型描述
keyconst T&Dictionary 键。

ReturnValue

对应传入键的值的引用,可能已存在或新创建。

另见

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

访问运算符,用于键类型转换。

template<class X> V & System::Collections::Generic::DictionaryPtr<T, V>::operator[](const X &key) const
参数描述
X源键类型。
参数类型描述
keyconst X&Dictionary 键。

ReturnValue

对应传入键的值的引用,可能已存在或新创建。

另见