Esempio n. 1
0
 //
 // Summary:
 //     Visits the children of the System.Linq.Expressions.MemberMemberBinding.
 //
 // Parameters:
 //   node:
 //     The expression to visit.
 //
 // Returns:
 //     The modified expression, if it or any subexpression was modified; otherwise,
 //     returns the original expression.
 protected override MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
 {
     Console.WriteLine("VisitMemberMemberBinding:");
     Console.WriteLine('\t' + node.GetType().ToString());
     Console.WriteLine('\t' + node.ToString());
     return(base.VisitMemberMemberBinding(node));
 }
Esempio n. 2
0
 /// <summary>访问子内容为: <see cref="T:System.Linq.Expressions.MemberMemberBinding"></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 MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
 {
     Log(node.ToString());
     throw new NotImplementedException();
 }
 /// <summary>
 /// Visits the children of the <see cref="System.Linq.Expressions.MemberMemberBinding"/>.
 /// </summary>
 /// <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 MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
 {
     // new a() { b = x, c = y }
     InvalidExpression(node.ToString());
     return(null);
 }