ImmutableList<T>::IImmutableList<T>::SetItem Method (Int32, T)

 

Replaces an element in the list at a given position with the specified element.

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 position in the list of the element to replace.

value
Type: T

The element to replace the old element with.

Return Value

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

The new list.

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

Return to top
Show: