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 (IList
T
, Nullable
Int32
)
Gets a new
IList
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
IList
<T>
Cycle
<T>(
this
IList
<T>
this
,
Nullable
<
int
>
amount
=
null
)
Parameters
this
Type:
System.Collections.Generic
IList
T
The
IList
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
IList
T
.
Return Value
Type:
IList
T
An
IList
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
IList
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)
.
See Also
Reference
cycle Class
Cycle Overload
WhetStone.Looping Namespace