Dim commands As String() = alterScopeSql.Split(New String() {"GO" & vbCr & vbLf, "GO ", "GO" & vbTab, "GO"}, StringSplitOptions.RemoveEmptyEntries)The converter at http://www.developerfusion.com/tools/convert/vb-to-csharp gives:
string[] commands = alterScopeSql.Split(new string[] { "GO" + Constants.vbCr + Constants.vbLf, "GO ", "GO" + Constants.vbTab, "GO" }, StringSplitOptions.RemoveEmptyEntries);They are not 100% accurate sometimes but usually they do a pretty good job.