Table of Contents

Method SetItem

Namespace
GuildWars2.Collections
Assembly
GuildWars2.dll

SetItem(int, T)

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

IImmutableValueList<T> SetItem(int index, T value)

Parameters

index int

The position in the list of the element to replace.

value T

The element to replace the old element with.

Returns

IImmutableValueList<T>

A new list that contains the new element, even if the element at the specified location is the same as the new element.