EnumerableExt..::..Slice<(Of <(<'T>)>)> Method

Slices the specified start. char[] h = "0123456789abcdef".ToCharArray(); var a = h.Slice(0, 3);

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static IEnumerable<T> Slice<T>(
	IEnumerable<T> collection,
	int start,
	int end
)

Type Parameters

T

Parameters

collection
Type: IEnumerable<(Of <(<'T>)>)>
The collection.
start
Type: Int32
The start.
end
Type: Int32
The end.

Return Value

IEnumerable<T>.

Exceptions


ExceptionCondition
ArgumentNullExceptioncollection