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>::SetItem Method (Int32, T)
Replaces an element at a given position in the immutable list with the specified element.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
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::ImmutableList<T>^The new list with the replaced element, even if it is equal to the old element at that position.
Show: