ImmutableArray<T>::IImmutableList<T>::Insert Method (Int32, T)
Returns a new array with the specified value inserted at the specified position.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
private: virtual IImmutableList<T>^ Insert( int index, T element ) sealed = IImmutableList<T>::Insert
Parameters
- index
-
Type:
System::Int32
The 0-based index into the array at which the new item should be added.
- element
-
Type:
T
The item to insert at the start of the array.
Return Value
Type: System.Collections.Immutable::IImmutableList<T>^A new array with the specified value inserted.
Implements
IImmutableList<T>::Insert(Int32, T)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.
Show: