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

定义

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

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items) = System::Collections::Immutable::IImmutableList<T>::InsertRange;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
Function InsertRange (index As Integer, items As IEnumerable(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).InsertRange

参数

index
Int32

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

items
IEnumerable<T>

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

返回

已插入指定值的新数组。A new array with the specified values inserted.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableArray<T> 实例被强制转换为 IImmutableList<T> 接口时使用。It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

适用于