Beispiel #1
0
 //
 // Summary:
 //     Visits the children of the System.Linq.Expressions.DynamicExpression.
 //
 // 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 VisitDynamic(DynamicExpression node)
 {
     Console.WriteLine("VisitDynamic:");
     Console.WriteLine('\t' + node.GetType().ToString());
     Console.WriteLine('\t' + node.ToString());
     return(base.VisitDynamic(node));
 }
Beispiel #2
0
 /// <summary>访问子内容为: <see cref="T:System.Linq.Expressions.DynamicExpression"></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 VisitDynamic(DynamicExpression node)
 {
     Log(node.ToString());
     throw new NotImplementedException();
 }
 public DynamicTranslationArgs(DynamicExpression dynamicExpression, ITranslationContext context)
 {
     _dynamicExpression   = dynamicExpression;
     OperationDescription = dynamicExpression.ToString();
     Context = context;
 }