How to convert a list of strings into array and combines it into a string with specific delimiter in VB.NET

1 Answer

0 votes
Module Module1

    Sub Main()

        Dim list As New List(Of String)(New String() {"VB.NET", "Java", "PHP", "C++"})

        Dim s As String = String.Join(", ", list.ToArray)

        Console.WriteLine(s)

    End Sub

End Module

' run:
' 
' VB.NET, Java, PHP, C++

 



answered Sep 26, 2018 by avibootz
...