TfsWitAdminTools.ViewModel.DelegateCommand.DelegateCommand C# (CSharp) Метод

DelegateCommand() публичный Метод

public DelegateCommand ( System.Action execute, Func canExecute = null ) : System
execute System.Action
canExecute Func
Результат System
        public DelegateCommand(Action execute, Func<bool> canExecute = null)
        {
            if (execute == null)
                throw new ArgumentNullException("execute");

            _execute = execute;
            _canExecute = canExecute;
        }