System::Collections::ObjectModel::Collection::operator[] 方法

Collection::operator method

获取指定索引处的值。

T & System::Collections::ObjectModel::Collection<T>::operator[](int index)
参数类型描述
索引int获取值的索引。

ReturnValue

对指定索引处的现有值的引用。

另见

Collection::operator const method

获取指定索引处的值。

const T & System::Collections::ObjectModel::Collection<T>::operator[](int index) const
参数类型描述
索引int获取值的索引。

ReturnValue

对指定索引处的现有值的常量引用。

另见