| ParallelFor Method (Int32, Int32, ActionInt32) |
Executes a for loop where each iteration can potentially occur in parallel with others.
Namespace: DigitalRune.ThreadingAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static void For(
int startInclusive,
int endExclusive,
Action<int> body
)
Public Shared Sub For (
startInclusive As Integer,
endExclusive As Integer,
body As Action(Of Integer)
)
public:
static void For(
int startInclusive,
int endExclusive,
Action<int>^ body
)
static member For :
startInclusive : int *
endExclusive : int *
body : Action<int> -> unit
Parameters
- startInclusive
- Type: SystemInt32
The index (inclusive) at which to start iterating. - endExclusive
- Type: SystemInt32
The index (exclusive) at which to end iterating. - body
- Type: SystemActionInt32
The method to execute at each iteration. The current index is supplied as the parameter.
Exceptions See Also