public static MethodInvocationExpression CreateMethodInvocationExpression(LexicalInfo li, Expression target, Expression arg) { MethodInvocationExpression mie = new MethodInvocationExpression(li); mie.Target = (Expression)target.Clone(); mie.Arguments.Add((Expression)arg.Clone()); mie.IsSynthetic = true; return mie; }