Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft