Click or drag to resize

ReadOnlySpanTSlice(Int32, Int32) Method

Forms a slice out of the current span starting at the specified index for the specified length.

Namespace: System
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public ReadOnlySpan<T> Slice(
	int start,
	int length
)

Parameters

start  Int32
The index at which to begin the slice.
length  Int32
The desired length of the slice.

Return Value

ReadOnlySpanT
A ReadOnlySpanT of length elements starting at start.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when start or length is out of range.
See Also