public override void Visit(NewExpression expression, TranslationContext context, bool negated = false) { context.Writer.Write("new "); context.Writer.Write(expression.Constructor.DeclaringType.Name); context.Writer.Write("("); MethodCallTranslator.WriteArguments(this, expression.Arguments, context); context.Writer.Write(")"); }
public override void Visit(InvocationExpression expression, TranslationContext context, bool negated = false) { if (expression.Expression is MemberExpression) { throw new DryvExpressionNotSupportedException(expression); } this.Translate(expression.Expression, context); context.Writer.Write("("); MethodCallTranslator.WriteArguments(this, expression.Arguments, context); context.Writer.Write(")"); }