ImmutableArray<T>.IImmutableList<T>.Insert(Int32, T) ImmutableArray<T>.IImmutableList<T>.Insert(Int32, T) ImmutableArray<T>.IImmutableList<T>.Insert(Int32, T) Method

Definition

Returns a new array with the specified value inserted at the specified position.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T element) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert (int index, T element);
Function Insert (index As Integer, element As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert

Parameters

index
Int32 Int32 Int32

The 0-based index into the array at which the new item should be added.

element
T T T

The item to insert at the start of the array.

Returns

A new array with the specified value inserted.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

Applies to