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

 

Returns a new array with the specified value inserted at the specified position.

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

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

Parameters

index
Type: System::Int32

The 0-based index into the array at which the new item should be added.

item
Type: T

The item to insert at the start of the array.

Return Value

Type: System.Collections.Immutable::ImmutableArray<T>

A new array with the item inserted at the specified index.

Return to top
Show: