I\'m trying to convert this code from C# to VB.NET
string[] lines = theText.Split(new string[] { \"\\r\\n\", \"\\n\" }, StringSplitOptions.None);
From an online converter:
Your c# code:
string[] lines = theText.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);
Converted to VB.NET:
Dim lines As String() = theText.Split(New String() {vbCr & vbLf, vbLf}, StringSplitOptions.None)