コード例 #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;
        }
コード例 #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);
        }