Skip to main content

TrackedAtomsList<T> class

Namespace: Arlecchino.Atoms.Tracked · Assembly: Arlecchino.Core

A list whose changes go on the undo stack, picked up by AtomHistory with nothing to register. Each call is one step, so a page added at once comes back as a page.

public sealed class TrackedAtomsList<T> : AtomsList<T>, IReadableAtom<IReadOnlyList<T>>

Inherits from AtomsList<T>
Implements IReadableAtom<IReadOnlyList<T><T>>

Constructors

MemberSummary
TrackedAtomsList(IReadOnlyList<T>, IEqualityComparer<T>)Creates an undoable list.

Properties

MemberSummary
RecordsHistory

Constructors in detail

TrackedAtomsList(IReadOnlyList<T>, IEqualityComparer<T>)

public TrackedAtomsList(IReadOnlyList<T> initial, IEqualityComparer<T> comparer);

Creates an undoable list.

Parameters

NameTypeDescription
initialIReadOnlyList<T><T>What it starts with; empty when omitted.
comparerIEqualityComparer<T><T>How items are compared; the default comparer when omitted.

Properties in detail

RecordsHistory

public virtual bool RecordsHistory { get; }

Type bool