Apply the given function to each element of this sequence.
If this sequence represents an infinite set or series, this will never return!
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public void ForEach(
Action<T> function
)
public void ForEach(
Action<T> function
)
Public Sub ForEach (
function As Action(Of T)
)
Public Sub ForEach (
function As Action(Of T)
)
public:
virtual void ForEach(
Action<T>^ function
) sealed
public:
virtual void ForEach(
Action<T>^ function
) sealed
abstract ForEach :
function : Action<'T> -> unit
override ForEach :
function : Action<'T> -> unit
abstract ForEach :
function : Action<'T> -> unit
override ForEach :
function : Action<'T> -> unit
Parameters
- function
- Type: System Action T
The function to apply to each element.
Implements
ISequence T ForEach(Action T )See Also