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>开始start,由元素组成的length元素ImmutableArray<T>

适用于