Esempio n. 1
0
 //
 // Summary:
 //     Visits the children of the System.Linq.Expressions.LoopExpression.
 //
 // Parameters:
 //   node:
 //     The expression to visit.
 //
 // Returns:
 //     The modified expression, if it or any subexpression was modified; otherwise,
 //     returns the original expression.
 protected override Expression VisitLoop(LoopExpression node)
 {
     Console.WriteLine("VisitLoop:");
     Console.WriteLine('\t' + node.GetType().ToString());
     Console.WriteLine('\t' + node.ToString());
     return(base.VisitLoop(node));
 }
Esempio n. 2
0
 /// <summary>访问子内容为: <see cref="T:System.Linq.Expressions.LoopExpression"></see>.</summary>
 /// <param name="node">被访问的表达式</param>
 /// <returns>The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.</returns>
 protected override Expression VisitLoop(LoopExpression node)
 {
     Log(node.ToString());
     throw new NotImplementedException();
 }
Esempio n. 3
0
        public void ToStringTest()
        {
            LoopExpression e = Expression.Loop(Expression.Empty());

            Assert.Equal("loop { ... }", e.ToString());
        }