Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
splice Class
splice Methods
Splice Method
Splice(T) Method (IEnumerable(T), IEnumerable(T), Int32)
Splice(T) Method (IEnumerable(T), T, Int32)
Splice(T) Method (IList(T), IList(T), Int32)
Splice(T) Method (IList(T), T, Int32)
splice
Splice
T
Method (IEnumerable
T
,
T
, Int32)
Create an
IEnumerable
T
with an element inserted into it.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IEnumerable
<T>
Splice
<T>(
this
IEnumerable
<T>
this
, T
slice
,
int
spliceStart
)
Parameters
this
Type:
System.Collections.Generic
IEnumerable
T
The
IEnumerable
T
to insert to.
slice
Type:
T
The element to insert.
spliceStart
Type:
System
Int32
The index of the inserted element.
Type Parameters
T
The type of the
IEnumerable
T
s.
Return Value
Type:
IEnumerable
T
A new
IEnumerable
T
, like
this
but with
slice
inserted at index
spliceStart
.
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)
.
See Also
Reference
splice Class
Splice Overload
WhetStone.Looping Namespace