Table of Contents

Method Replace

Namespace
GuildWars2.Collections
Assembly
GuildWars2.dll

Replace(T, T, IEqualityComparer<T>?)

Creates a new ImmutableValueArray<T> with the first occurrence of the old value replaced with the new value.

public ImmutableValueArray<T> Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer)

Parameters

oldValue T

The value to replace.

newValue T

The replacement value.

equalityComparer IEqualityComparer<T>

The equality comparer to use.

Returns

ImmutableValueArray<T>

A new array with the replacement made.