TfsWitAdminTools.ViewModel.DelegateCommand.DelegateCommand C# (CSharp) Method

DelegateCommand() public method

public DelegateCommand ( System.Action execute, Func canExecute = null ) : System
execute System.Action
canExecute Func
return System
        public DelegateCommand(Action execute, Func<bool> canExecute = null)
        {
            if (execute == null)
                throw new ArgumentNullException("execute");

            _execute = execute;
            _canExecute = canExecute;
        }