Function call spanning multiple lines in VB.NET
vb.net
Solution
Dim res = function("arg1", _
"arg2", _
"arg3" _
)
Will work, however you can't add comments to each line, as the `_` character has to be the last character on the line.
Problem
I have a C# function call which looks something like this: ``` var res = function ("arg1", // argument# 1 "arg2", // argument# 2 "arg3" // argument# 3 ); ``` the list of arguments is around 25 or so. It's a Web Services function, which I have no control over. I'm trying to port it to VB.NET for another application and was wondering if VB.NET will let me call a function in this manner (with comments, if possible)?