Click or drag to resize

ReadOnlyMemoryTSlice(Int32, Int32) Method

Forms a slice of the specified length starting at the specified index.

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

Parameters

start  Int32
The zero-based index at which the slice begins
length  Int32
The number of elements in the slice

Return Value

ReadOnlyMemoryT
A memory containing length elements starting at start
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstart or length are outside the bounds of this memory
See Also