Пример #1
0
 public bool VisitNode(ConditionalExpression node)
 {
     throw new NotImplementedException();
 }
Пример #2
0
        public bool VisitNode(ConditionalExpression node)
        {
            // condition ? then : else
            ExpressionPrescedence.Push(NOPRESCEDENCE);
            node.Condition.AcceptVisitor(this);
            Append(" ? ");
            node.TrueExpression.AcceptVisitor(this);
            Append(" : ");
            node.FalseExpression.AcceptVisitor(this);
            ExpressionPrescedence.Pop();

            return true;
        }