Click or drag to resize

Command<TState> Constructor (Action, Func<TState>, Action<TState>, String)

Namespace:  SD.Tools.Algorithmia.Commands
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.3.0 (1.3.18.0209)
Syntax
public Command(
	Action doFunc,
	Func<TState> getStateFunc,
	Action<TState> undoFunc,
	string description
)

Parameters

doFunc
Type: System.Action
The do func, used for performing the Do operation, which is a func which doesn't accept any parameters.
getStateFunc
Type: System.Func<TState>
The get state func, which is the func to use to get the state.
undoFunc
Type: System.Action<TState>
The undo func, which is the func to undo the action performed by the doFunc. Can be the same as doFunc.
description
Type: System.String
The description of the command.
See Also