How to join a list of strings in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Class Program
	Public Shared Sub Main()
        Dim list = New List(Of String)() From {
			"vb.net",
            "java",
            "c",
            "c++"
        }
        Dim s As String = String.Join(Of String)(", ", list)
		
        Console.WriteLine(s)
    End Sub
End Class



' run:
'
' vb.net, java, c, c++
'

 



answered May 4 by avibootz
...