ImmutableArray<T>.Insert(Int32, T) 方法

定義

傳回新的陣列,其中包含在指定位置插入的指定值。

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

參數

index
Int32

新項目應加入的陣列中以 0 為基礎的索引。

item
T

要插入在陣列起始的項目。

傳回

一個新陣列,將該項目插入指定的索引。

適用於