PyriteCore.ScenarioCreation.IfAction.ForAllActionAndChecker C# (CSharp) Method

ForAllActionAndChecker() public method

public ForAllActionAndChecker ( Action action ) : void
action Action
return void
        public void ForAllActionAndChecker(Action<object> action)
        {
            if (Checker != null && Checker is IHasCheckerAction)
                ((IHasCheckerAction)Checker).ForAllActionAndChecker(action);

            if (ActionIf != null && ActionIf is IHasCheckerAction)
                ((IHasCheckerAction)ActionIf).ForAllActionAndChecker(action);

            if (ActionElse != null && ActionElse is IHasCheckerAction)
                ((IHasCheckerAction)ActionElse).ForAllActionAndChecker(action);
        }