ImmutableArray<T>.Slice(Int32, Int32) Method

Definition

Forms a slice out of the current ImmutableArray<T> starting at a specified index for a specified length.

C#
public System.Collections.Immutable.ImmutableArray<T> Slice(int start, int length);

Parameters

start
Int32

The index at which to begin this slice.

length
Int32

The desired length for the slice.

Returns

An ImmutableArray<T> that consists of length elements from the current ImmutableArray<T>, starting at start.

Applies to

Produkt Versioner
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)