ImmutableList<T>.Builder.InsertRange 方法

定義

將集合的項目插入不可變清單的指定索引處。

public:
 void InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public void InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
member this.InsertRange : int * seq<'T> -> unit
Public Sub InsertRange (index As Integer, items As IEnumerable(Of T))

參數

index
Int32

應插入新項目處的以零為起始的索引。

items
IEnumerable<T>

應將其項目插入不可變清單的集合。 如果 type 是參考型 T 別,則集合本身不能是 null ,但可以包含 null 的專案。

適用於