System::Collections::Generic::IList 类

IList class

元素的索引容器接口。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

template<typename T>class IList : public System::Collections::Generic::ICollection<T>
参数描述
T元素类型。

方法

方法描述
get_IsFixedSize()检查集合是否具有固定大小。
virtual idx_get(int) const获取指定索引处的元素。
virtual idx_set(int, T)设置指定索引处的元素。
virtual IndexOf(const T&) const获取项在容器中首次出现的索引。
virtual Insert(int, const T&)在指定位置插入元素,后续元素向后移动。
virtual RemoveAt(int)移除指定索引处的元素。

Typedefs

类型定义描述
BaseTypeRTTI 信息。
ThisType此类型。
ValueType值类型。

另见