System::Collections::IListImplRefType 类

IListImplRefType class

System::Collections::IList 接口上实现于 System::Collections::Generic::List 对象的存根,实现针对引用类型的功能。

template<typename T>class IListImplRefType : public virtual System::Collections::IList

方法

方法描述
Add(SharedPtr<System::Object>) override向列表末尾添加元素。
static BoxValue(System::SharedPtr<T>)将类型引用转换为对象值。
Clear() override删除所有元素。
Contains(SharedPtr<System::Object>) const override检查列表中是否存在该项。
get_Count() const overrideICollection.get_Count() 方法实现 获取集合中元素的数量。
GetEnumerator() overrideIEnumerable.GetEnumerator() 实现 返回一个遍历集合的枚举器。
idx_get(int, int) const override获取指定索引处的元素。
IListImplRefType(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<T>>>)创建新的对象实例。
IndexOf(System::SharedPtr<System::Object>) const override获取项在容器中首次出现的索引。
Insert(int, System::SharedPtr<System::Object>) override在指定位置插入元素,后面的元素向后移动。
Remove(SharedPtr<System::Object>) override从列表中移除特定项的第一次出现。
RemoveAt(int) override移除指定位置的项。
static UnboxValue(System::SharedPtr<System::Object>)将对象值转换为特定类型引用。

另见