コード例 #1
0
        protected virtual Expression VisitStatementExpression(StatementExpression expression)
        {
            var ex = this.Visit(expression.Expression);

            if (ex != expression.Expression)
            {
                return ex.ToStatement();
            }

            return expression;
        }
コード例 #2
0
        protected override Expression VisitStatementExpression(StatementExpression expression)
        {
            this.Visit(expression.Expression);
            this.WriteLine(';');

            return expression;
        }