Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
skipSlice Class
skipSlice Methods
SkipSlice Method
SkipSlice(T) Method (IEnumerable(T), Int32, Int32)
SkipSlice(T) Method (IList(T), Int32, Int32)
skipSlice
SkipSlice
T
Method (IEnumerable
T
, Int32, Int32)
Get an
IEnumerable
T
with elements in the middle removed.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IEnumerable
<T>
SkipSlice
<T>(
this
IEnumerable
<T>
this
,
int
start
,
int
length
= 1 )
Parameters
this
Type:
System.Collections.Generic
IEnumerable
T
The
IEnumerable
T
to use.
start
Type:
System
Int32
The start of the removed section.
length
(Optional)
Type:
System
Int32
The length of the removed section.
Type Parameters
T
The type of the
IEnumerable
T
Return Value
Type:
IEnumerable
T
A new
IEnumerable
T
, with
this
's elements except the section starting at
start
and
length
long removed.
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
If the section is outside the bounds of
this
, the subsections that don't overlap
this
are ignored.
See Also
Reference
skipSlice Class
SkipSlice Overload
WhetStone.Looping Namespace