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
| Member | Summary |
|---|---|
TrackedAtomsList(IReadOnlyList<T>, IEqualityComparer<T>) | Creates an undoable list. |
Properties
| Member | Summary |
|---|---|
RecordsHistory |
Constructors in detail
TrackedAtomsList(IReadOnlyList<T>, IEqualityComparer<T>)
public TrackedAtomsList(IReadOnlyList<T> initial, IEqualityComparer<T> comparer);
Creates an undoable list.
Parameters
| Name | Type | Description |
|---|---|---|
initial | IReadOnlyList<T><T> | What it starts with; empty when omitted. |
comparer | IEqualityComparer<T><T> | How items are compared; the default comparer when omitted. |
Properties in detail
RecordsHistory
public virtual bool RecordsHistory { get; }
Type bool