ImmutableList<T>::IImmutableList<T>::Insert Method (Int32, T)

 

Inserts the specified element at the specified index in the immutable list.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

private:
virtual IImmutableList<T>^ Insert(
	int index,
	T item
) sealed = IImmutableList<T>::Insert

Parameters

index
Type: System::Int32

The index at which to insert the value.

item
Type: T

The element to insert.

Return Value

Type: System.Collections.Immutable::IImmutableList<T>^

A new immutable list that includes the specified element.

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

Return to top
Show: