Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
cycle Class
cycle Methods
Cycle Method
Cycle(T) Method (IEnumerable(T), Nullable(Int32))
Cycle(T) Method (IList(T), Nullable(Int32))
cycle
Cycle
T
Method (IEnumerable
T
, Nullable
Int32
)
Gets a new
IEnumerable
T
, that is
this
repeated.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IEnumerable
<T>
Cycle
<T>(
this
IEnumerable
<T>
this
,
Nullable
<
int
>
amount
=
null
)
Parameters
this
Type:
System.Collections.Generic
IEnumerable
T
The
IEnumerable
T
to repeat.
amount
(Optional)
Type:
System
Nullable
Int32
How many times to repeat enumeration, or
for infinite repetition.
Type Parameters
T
The type of the
IEnumerable
T
.
Return Value
Type:
IEnumerable
T
An
IEnumerable
T
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
IEnumerable
T
. 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
IList
T
interface. This is to accelerate certain LINQ operations, and should not be accessed by the user.
See Also
Reference
cycle Class
Cycle Overload
WhetStone.Looping Namespace