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
oldValueTThe value to replace.
newValueTThe replacement value.
equalityComparerIEqualityComparer<T>The equality comparer to use.
Returns
- ImmutableValueArray<T>
A new array with the replacement made.