ActionCommand.ActionCommand C# (CSharp) Method

ActionCommand() public method

Initializes a new instance of the ActionCommand class.
public ActionCommand ( Action executeAction, Func canExecuteFunction ) : System
executeAction Action The action to be performed on .
canExecuteFunction Func The fuction that will test if the action can be executed.
return System
    public ActionCommand(Action executeAction, Func<bool> canExecuteFunction)
    {
        _executeAction = executeAction;
        _canExecuteFunction = canExecuteFunction;
    }