Ejemplo n.º 1
0
        /// <summary>
        /// Ors the specified conditionals.
        /// </summary>
        /// <param name="conditionals">The conditionals.</param>
        /// <returns></returns>
        public Disjunction Or(params Conditional[] conditionals)
        {
            Disjunction disjunction = new Disjunction();
            disjunction.SubTerms.Add(this);
            foreach (Conditional c in conditionals)
                disjunction.SubTerms.Add(c);

            return disjunction;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Ors the specified conditionals.
        /// </summary>
        /// <param name="conditionals">The conditionals.</param>
        /// <returns></returns>
        public Disjunction Or(params Conditional[] conditionals)
        {
            Disjunction disjunction = new Disjunction();

            disjunction.SubTerms.Add(this);
            foreach (Conditional c in conditionals)
            {
                disjunction.SubTerms.Add(c);
            }

            return(disjunction);
        }