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

#
public ActionList(IEnumerable<Action> actions)
Create a new pre-populated list.
actions (IEnumerable<Action>)

ActionList

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

Properties

Actions

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

Count

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

Empty

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

Methods

Add

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

Add

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

ToArray

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

ToRecord

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

Operators

OperationResultDescription
ActionList+ActionListActionListConcatenate two lists.