Click or drag to resize

SpanTSlice(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.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public Span<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

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