<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.5.0" />

ReactiveUI.Primitives.Advanced.CopyOnWriteList<T>

public sealed class CopyOnWriteList<T>
Immutable array-backed list optimized for copy-on-write observer storage.
public static readonly CopyOnWriteList<T> Empty

Gets the shared empty list.

public T[] Items { get; }

Gets the immutable list items.

public CopyOnWriteList(T[] data)

Initializes a new instance of the CopyOnWriteList<T> class.

public CopyOnWriteList<T> Add(T value)

Returns a new list with the value appended.

public int IndexOf(T value)

Finds the first matching value.

public CopyOnWriteList<T> Remove(T value)

Returns a new list with the first matching value removed.