Show / Hide Table of Contents

Class CompositeCommand

Combines multiple IUndoCommands into a single atomic transaction.

Inheritance
Object
SimpleCommand
CompositeCommand
Implements
IUndoCommand
Inherited Members
SimpleCommand.Execute()
SimpleCommand.Undo()
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public class CompositeCommand : SimpleCommand, IUndoCommand

Constructors

CompositeCommand(IUndoCommand[])

Creates a new composite command.

Declaration
public CompositeCommand(params IUndoCommand[] commands)
Parameters
Type Name Description
IUndoCommand[] commands

The commands to be contained inside the transaction.

Methods

OnExecute()

Executes all the contained IUndoCommands in order.

Declaration
protected override void OnExecute()
Overrides
SimpleCommand.OnExecute()

OnUndo()

Undoes all the contained IUndoCommands in reverse order.

Declaration
protected override void OnUndo()
Overrides
SimpleCommand.OnUndo()

Implements

IUndoCommand

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher