Initializes a new instance of the GenericCommand<(Of <(<'T>)>)> class.

Namespace: FirstFloor.Documents.Controls.Commands
Assembly: FirstFloor.Documents.Controls (in FirstFloor.Documents.Controls.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public GenericCommand(
	Action<T> execute,
	Func<T, bool> canExecute
)
Visual Basic
Public Sub New ( _
	execute As Action(Of T), _
	canExecute As Func(Of T, Boolean) _
)
Visual C++
public:
GenericCommand(
	Action<T>^ execute, 
	Func<T, bool>^ canExecute
)

Parameters

execute
Type: System..::..Action<(Of <(<'T>)>)>
The execute.
canExecute
Type: System..::..Func<(Of <(<'T, Boolean>)>)>
The can execute.

See Also