Exemplo n.º 1
0
        public override void Handle()
        {
            base.Handle();
            this.Output = true;

            InputList.ForEach((bool input) =>
            {
                if (input)
                {
                    this.Output = false;
                }
            });
        }
Exemplo n.º 2
0
        public override void Handle()
        {
            base.Handle();
            int nrOfTrue = 0;

            InputList.ForEach((bool input) =>
            {
                if (input)
                {
                    nrOfTrue++;
                }
            });

            Output = (nrOfTrue == 1);
        }