Exemplo n.º 1
0
 //
 // Summary:
 //     Visits the children of the System.Linq.Expressions.IndexExpression.
 //
 // 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 VisitIndex(IndexExpression node)
 {
     Console.WriteLine("VisitIndex:");
     Console.WriteLine('\t' + node.GetType().ToString());
     Console.WriteLine('\t' + node.ToString());
     return(base.VisitIndex(node));
 }
Exemplo n.º 2
0
 protected override Expression VisitIndex(IndexExpression node)
 {
     throw new NotSupportedException(node.GetType().Name);
 }
Exemplo n.º 3
0
 protected override Expression VisitIndex(IndexExpression node)
 {
     throw new NotSupportedException($"Node type {node.GetType().Name} is not supported.");
 }
 /// <param name="node">The expression to visit.</param>
 /// <returns>The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.</returns>
 protected override Expression VisitIndex(IndexExpression node)
 {
     throw new NotSupportedException(string.Format(Resources.EX_PROCESS_NODE_NOT_SUPPORT, node.GetType().Name));
 }