Click or drag to resize
MoreEnumerableNestedLoops Method
Produces a sequence from an action based on the dynamic generation of N nested loops who iteration counts are defined by loopCounts.

Namespace: MoreLinq
Assembly: MoreLinq (in MoreLinq.dll) Version: 2.0.0
Syntax
public static IEnumerable<Action> NestedLoops(
	this Action action,
	IEnumerable<int> loopCounts
)

Parameters

action
Type: SystemAction
Action delegate for which to produce a nested loop sequence
loopCounts
Type: System.Collections.GenericIEnumerableInt32
A sequence of loop repetition counts

Return Value

Type: IEnumerableAction
A sequence of Action representing the expansion of a set of nested loops

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also