ImmutableList<T>.GetRange(Int32, Int32) 方法

定义

在源不可变列表中创建元素范围的浅表复制。

public:
 virtual System::Collections::Immutable::ImmutableList<T> ^ GetRange(int index, int count);
public:
 System::Collections::Immutable::ImmutableList<T> ^ GetRange(int index, int count);
public System.Collections.Immutable.ImmutableList<T> GetRange (int index, int count);
abstract member GetRange : int * int -> System.Collections.Immutable.ImmutableList<'T>
override this.GetRange : int * int -> System.Collections.Immutable.ImmutableList<'T>
member this.GetRange : int * int -> System.Collections.Immutable.ImmutableList<'T>
Public Function GetRange (index As Integer, count As Integer) As ImmutableList(Of T)

参数

index
Int32

范围开始处的从零开始的索引。

count
Int32

范围中的元素数。

返回

在源不可变列表中元素范围的浅表复制。

适用于