Click or drag to resize

skipSliceSkipSliceT Method (IListT, Int32, Int32)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IList<T> SkipSlice<T>(
	this IList<T> this,
	int start,
	int length = 1
)

Parameters

this
Type: System.Collections.GenericIListT
The IListT to use.
start
Type: SystemInt32
The start of the removed section.
length (Optional)
Type: SystemInt32
The length of the removed section.

Type Parameters

T
The type of the IListT

Return Value

Type: IListT
A new IListT, 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 IListT. 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.

The returned value is mutability-passing.

See Also