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

 

Replaces the item at the specified index with the specified item.

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

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

Parameters

index
Type: System::Int32

The index of the item to replace.

item
Type: T

The item to add to the list.

Return Value

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

The new array that contains item at the specified index.

Return to top
Show: