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

 

Inserts the specified object into the immutable list at the specified index.

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

public:
ImmutableList<T>^ Insert(
	int index,
	T item
)

Parameters

index
Type: System::Int32

The zero-based index at which to insert the object.

item
Type: T

The object to insert.

Return Value

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

The new immutable list after the object is inserted.

Return to top
Show: