ImmutableArray<T>.InsertRange 方法

定義

多載

InsertRange(Int32, IEnumerable<T>)

在指定的索引處插入指定的值。

InsertRange(Int32, ImmutableArray<T>)

在指定的索引處插入指定的值。

InsertRange(Int32, ReadOnlySpan<T>)

在指定的索引處插入指定的值。

InsertRange(Int32, T[])

在指定的索引處插入指定的值。

InsertRange(Int32, IEnumerable<T>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs

在指定的索引處插入指定的值。

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

要插入值的索引。

items
IEnumerable<T>

要插入的項目。

傳回

新的不可變陣列,其中包含已插入指定索引處的項目。

適用於

InsertRange(Int32, ImmutableArray<T>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs

在指定的索引處插入指定的值。

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

要插入值的索引。

items
ImmutableArray<T>

要插入的項目。

傳回

新的不可變陣列,其中包含已插入指定索引處的項目。

適用於

InsertRange(Int32, ReadOnlySpan<T>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs

在指定的索引處插入指定的值。

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

參數

index
Int32

要插入值的索引。

items
ReadOnlySpan<T>

要插入的項目。

傳回

新的不可變集合。

適用於

InsertRange(Int32, T[])

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs

在指定的索引處插入指定的值。

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

參數

index
Int32

要插入值的索引。

items
T[]

要插入的項目。

傳回

新的不可變集合。

適用於