Table of Contents

Class ValueListAssembler

Namespace
ToSic.Eav.Data.Build.Sys
Assembly
ToSic.Eav.Data.Build.dll

The internal system to manipulate value lists.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class ValueListAssembler
Inheritance
object
ValueListAssembler

Remarks

This is used in the builders to create the values for the attributes. It can also be used by external code to create values, but it's not really meant for that, so it's not public API. It's more of an internal helper class, which is why it's not in the Sys namespace.

Important: everything is functional meaning that object given in will never be modified.

Methods

Replace(IEnumerable<IValue>, IValue?, IValue)

public IImmutableList<IValue> Replace(IEnumerable<IValue> values, IValue? oldValueOrNullToAdd, IValue newValue)

Parameters

values IEnumerable<IValue>
oldValueOrNullToAdd IValue
newValue IValue

Returns

IImmutableList<IValue>