System::Array::Clear method

Array::Clear() method

不支持,因为当前对象表示的数组是只读的。

virtual void System::Array<T>::Clear() override

另见

Array::Clear(const ArrayPtr<Type>&, int, int) method

将指定数组中从 startIndex 索引开始的 count 个值替换为默认值。

template<typename Type> static void System::Array<T>::Clear(const ArrayPtr<Type> &arr, int startIndex, int count)
参数描述
类型目标数组中元素的类型
参数类型描述
arrconst ArrayPtr<Type>&目标数组
startIndexint开始替换项目的索引
countint要替换的项目数量

另见