ImmutableArray<T>.InsertRange 方法

定义

重载

InsertRange(Int32, IEnumerable<T>)

在指定索引处插入指定的值。Inserts the specified values at the specified index.

InsertRange(Int32, ImmutableArray<T>)

在指定索引处插入指定的值。Inserts the specified values at the specified index.

InsertRange(Int32, IEnumerable<T>)

在指定索引处插入指定的值。Inserts the specified values at the specified index.

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

参数

index
Int32

插入值的索引位置。The index at which to insert the value.

items
IEnumerable<T>

要插入的元素。The elements to insert.

返回

一个新的不可变数组,项已插入到该数组的指定索引处。A new immutable array with the items inserted at the specified index.

InsertRange(Int32, ImmutableArray<T>)

在指定索引处插入指定的值。Inserts the specified values at the specified index.

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

参数

index
Int32

插入值的索引位置。The index at which to insert the value.

items
ImmutableArray<T>

要插入的元素。The elements to insert.

返回

一个新的不可变数组,项已插入到该数组的指定索引处。A new immutable array with the items inserted at the specified index.

适用于