ActionList

References
public sealed class ActionList
A list of Action instances. This class makes it easy to collect a sequence of undo actions for a single record.

Constructors

ActionList

#
Create a new pre-populated list.
public ActionList()

ActionList

#
Create a new pre-populated list.
public ActionList(
params Action[]
actions
)

Properties

Actions

#
Enumerate over all actions.
public IEnumerable<Action> Actions { get; }

Count

#
Gets the number of actions in this list.
public int Count { get; }

Empty

#
Gets an empty list.
public static ActionList Empty { get; }

Methods

Add

#
Add an action to this list.
public void Add(
action
)

Add

#
Add a collection of actions to this list.
public void Add()

ToArray

#
Gets an array containing all the actions.
public Action[] ToArray()

ToRecord

#
Create a record from the given actions, or null if there are no actions.
public Record ToRecord()

Operators

OperationResultDescription
ActionList+ActionListActionListConcatenate two lists.