Example #1
0
        public override string ToString(IDictionary <Type, ExpressionAction> map)
        {
            var value = base.ToString(map);

            if (value == null)
            {
                var ops = new List <LiteralExpression>(2);
                ops.AddRange(Operands.Cast <LiteralExpression>());

                // default to infix notation
                value = string.Format(@"({1} {0} {2})", Operator, ops[0].ToString(map), ops[1].ToString(map));
            }

            return(value);
        }