System::Collections::Generic::List::ForEach method

List::ForEach method

对列表中的所有元素应用操作。

void System::Collections::Generic::List<T>::ForEach(System::Action<T> action)
参数类型描述
actionSystem::Action<T>要应用的 Action

另见