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.2.0
Syntax public static IEnumerable<Action> NestedLoops(
this Action action,
IEnumerable<int> loopCounts
)
<ExtensionAttribute>
Public Shared Function NestedLoops (
action As Action,
loopCounts As IEnumerable(Of Integer)
) As IEnumerable(Of Action)
public:
[ExtensionAttribute]
static IEnumerable<Action^>^ NestedLoops(
Action^ action,
IEnumerable<int>^ loopCounts
)
[<ExtensionAttribute>]
static member NestedLoops :
action : Action *
loopCounts : IEnumerable<int> -> IEnumerable<Action>
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:
IEnumerableActionA 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