Visual Basic .NET Language Multiline string literals


Example

VB now allows string literals that split over multiple lines.

Old syntax:

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

New syntax:

Dim text As String = "Line 1
Line 2"