Click or drag to resize

cycleCycleT Method (IEnumerableT, NullableInt32)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<T> Cycle<T>(
	this IEnumerable<T> this,
	Nullable<int> amount = null
)

Parameters

this
Type: System.Collections.GenericIEnumerableT
The IEnumerableT to repeat.
amount (Optional)
Type: SystemNullableInt32
How many times to repeat enumeration, or for infinite repetition.

Type Parameters

T
The type of the IEnumerableT.

Return Value

Type: IEnumerableT
An IEnumerableT that contains this's elements repeated.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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).
Remarks
The underlying class of the return value implements a read-only IListT interface. This is to accelerate certain LINQ operations, and should not be accessed by the user.
See Also