internal void Add(IExpression member)
 {
     if (member == null)
     {
         throw new ArgumentNullException(nameof(member));
     }
     members.Add(member);
 }
        /// <summary>
        /// Creates an expression consisting of multiple sub-expressions.
        /// </summary>
        /// <param name="members">The expressions comprising the expression.</param>
        /// <returns>The expression.</returns>
        public static ICompoundExpression From(IEnumerable <IExpression> members)
        {
            if (members == null)
            {
                throw new ArgumentNullException(nameof(members));
            }
            var expression = new CompoundExpression();

            foreach (var member in members)
            {
                expression.Add(member);
            }
            return(expression);
        }
Beispiel #3
0
 internal void Add(IExpression member)
 {
     members.Add(member);
 }