Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
take Class
take Methods
Take(T) Method
take
Take
T
Method
Get an
IList
T
that is the same as the original
IList
T
with the last elements skipped.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IList
<T>
Take
<T>(
this
IList
<T>
this
,
int
length
)
Parameters
this
Type:
System.Collections.Generic
IList
T
The
IList
T
to use.
length
Type:
System
Int32
The number of elements take.
Type Parameters
T
The type of the
IList
T
.
Return Value
Type:
IList
T
A mutability-passing
IList
T
that takes the first
length
elements in
this
.
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
take Class
WhetStone.Looping Namespace