ImmutableArray<T>::IImmutableList<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)

private:
virtual IImmutableList<T>^ SetItem(
	int index,
	T value
) sealed = IImmutableList<T>::SetItem

Parameters

index
Type: System::Int32

The index of the item to replace.

value
Type: T

The value to add to the list.

Return Value

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

The new array that contains item at the specified index.

This member is an explicit interface member implementation. It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

Return to top
Show: