System::Array::Clear 方法

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)
Parameter描述
Type目标数组中元素的类型
ParameterType描述
arrconst ArrayPtr<Type>&目标数组
startIndexint开始替换项目的索引
countint要替换的项目数量

另见