ImmutableList<T>.ForEach(Action<T>) 方法

定义

对不可变列表的每个元素执行指定的操作。

public:
 virtual void ForEach(Action<T> ^ action);
public:
 void ForEach(Action<T> ^ action);
public void ForEach (Action<T> action);
abstract member ForEach : Action<'T> -> unit
override this.ForEach : Action<'T> -> unit
member this.ForEach : Action<'T> -> unit
Public Sub ForEach (action As Action(Of T))

参数

action
Action<T>

要对不可变列表的每个元素执行的委托。

适用于