System::Array::ForEach 方法

Array::ForEach method

对指定数组的每个元素执行指定的操作。

static void System::Array<T>::ForEach(const ArrayPtr<T> &arr, System::Action<T> action)
参数类型描述
arrconst ArrayPtr<T>&目标数组
actionSystem::Action<T>对数组每个元素执行的操作

另见