Table of Contents

Class CommandCollector

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.dll

Executes IUndoCommands and collects them into a CompositeCommand allowing a combined undo later on.

public class CommandCollector : ICommandExecutor
Inheritance
CommandCollector
Implements
Extension Methods

Properties

Path

The path of the file the data structure being modified was loaded from. null if none.

public string? Path { get; set; }

Property Value

string

Methods

BuildComposite()

Creates a new CompositeCommand containing all IUndoCommands collected so far.

public IUndoCommand BuildComposite()

Returns

IUndoCommand

Execute(IUndoCommand)

Store an IUndoCommand for later execution.

public void Execute(IUndoCommand command)

Parameters

command IUndoCommand

The command to be stored.