ImmutableArray<T>.Slice(Int32, Int32) 方法

定義

從指定索引開始、長度指定,從電流 ImmutableArray<T> 中切出一個切片。

public:
 System::Collections::Immutable::ImmutableArray<T> Slice(int start, int length);
public System.Collections.Immutable.ImmutableArray<T> Slice(int start, int length);
member this.Slice : int * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Slice (start As Integer, length As Integer) As ImmutableArray(Of T)

參數

start
Int32

從此切片開始的索引。

length
Int32

切片的期望長度。

傳回

一個ImmutableArray<T>由當前ImmutableArray<T>元素組成length的元素,從 開始start

適用於