Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
trail Class
trail Methods
Trail Method
Trail(T) Method (IEnumerable(T), Int32, Boolean)
Trail(T) Method (IList(T), Int32, Boolean)
trail
Trail
T
Method (IList
T
, Int32, Boolean)
Get all the sub-lists of an
IList
T
of a specific length.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IList
<
IList
<T>>
Trail
<T>(
this
IList
<T>
this
,
int
trailLength
,
bool
wrap
=
false
)
Parameters
this
Type:
System.Collections.Generic
IList
T
The
IList
T
to use.
trailLength
Type:
System
Int32
The length of the sub-lists.
wrap
(Optional)
Type:
System
Boolean
Whether to wrap the list for the sake of the last elements.
Type Parameters
T
The type of the
IList
T
.
Return Value
Type:
IList
IList
T
a read-only
IList
T
of all the sub-lists of
this
of length
trailLength
.
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
trail Class
Trail Overload
WhetStone.Looping Namespace