IImmutableList<T>.InsertRange(Int32, IEnumerable<T>) 方法

定义

将指定元素插入到不可变列表中的指定索引位置。

public:
 System::Collections::Immutable::IImmutableList<T> ^ InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.IImmutableList<T> InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
abstract member InsertRange : int * seq<'T> -> System.Collections.Immutable.IImmutableList<'T>
Public Function InsertRange (index As Integer, items As IEnumerable(Of T)) As IImmutableList(Of T)

参数

index
Int32

应在此处插入新元素的从零开始的索引。

items
IEnumerable<T>

要插入的元素。

返回

IImmutableList<T>

包含指定元素的新不可变列表。

适用于