public BodyBuilder AddVoidMemberInvocation( IdentifierNameSyntax objectName, IdentifierNameSyntax methodName, params ArgumentSyntax[] arguments) { var methodAccess = SF.MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, objectName, methodName); AddExpression( SF.InvocationExpression( methodAccess, ToArgList(arguments))); return(this); }
public static ExpressionSyntax Call(this ExpressionSyntax expression, SimpleNameSyntax instruction, params ExpressionSyntax[] arguments) { return(SF.InvocationExpression(expression.Dot(instruction), SF.ArgumentList(SF.SeparatedList( arguments.Select(x => SF.Argument(x)))))); }
public static ExpressionSyntax Call(this ExpressionSyntax expression, string instruction, IEnumerable <ExpressionSyntax> arguments) { return(SF.InvocationExpression(expression.Dot(instruction), SF.ArgumentList(SF.SeparatedList( arguments.Select(x => SF.Argument(x)))))); }
public static ExpressionSyntax Invoke(this ExpressionSyntax expression, params ExpressionSyntax[] arguments) { return(SF.InvocationExpression(expression, SF.ArgumentList(SF.SeparatedList( arguments.Select(x => SF.Argument(x)))))); }