Executes a for (For in Visual Basic) loop in which iterations may run in parallel.

Namespace: Composite.Core.Parallelization
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static void For(
	int fromInclusive,
	int toExclusive,
	Action<int> body
)
Visual Basic
Public Shared Sub For ( _
	fromInclusive As Integer, _
	toExclusive As Integer, _
	body As Action(Of Integer) _
)
Visual C++
public:
static void For(
	int fromInclusive, 
	int toExclusive, 
	Action<int>^ body
)

Parameters

fromInclusive
Type: System..::..Int32
The start index, inclusive.
toExclusive
Type: System..::..Int32
The end index, exclusive.
body
Type: System..::..Action<(Of <(<'Int32>)>)>
The delegate that is invoked once per iteration.

See Also