MixinRefactoring.CompositeCommand.CanExecute C# (CSharp) Method

CanExecute() public method

public CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
childClass ClassWithSourceCode
settings Settings
return bool
        public virtual bool CanExecute(ClassWithSourceCode childClass, Settings settings = null)
        {
            if (Mixin == null)
                return false;
            var canExecute = false;
            // check that at least one command is executable
            foreach (var command in _commands)
                canExecute = canExecute || command.CanExecute(childClass, settings);
            return canExecute;
        }