多行字串文字

VB 現在允許分割多行的字串文字。

舊語法:

Dim text As String = "Line1" & Environment.NewLine & "Line2"

新語法:

Dim text As String = "Line 1
Line 2"