Why must VB.Net line continuation character be the last one on line
问题 Why must the line continuation character (_) be the last one on the line? Is there a technical reason for this or is this a usual Microsoft "feature"? In other basic dialects you can add a comment after it, but not in VB.net, so I'm curious as to why Microsoft decided to not allow comments on these lines. 回答1: It has to be baked into the compiler, because the disassembled code looks no different. Take a look at the following code: Dim nameVar As String = "John" MsgBox("Hello " & nameVar & _ "