Export (0) Print
Expand All

ImmutableList<T>.IImmutableList<T>.Insert Method

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)

IImmutableList<T> IImmutableList<T>.Insert(
	int index,
	T item
)

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.

Implements

IImmutableList<T>.Insert(Int32, T)

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.

Show:
© 2014 Microsoft