How to convert HashSet to string in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Public Class Program
    Public Shared Sub Main(ByVal args As String())
        Dim hset As HashSet(Of String) = New HashSet(Of String) From {
            "vb.net",
            "c#",
            "c",
            "c++",
			"php",
            "python"
        }
		
		Dim str As String = String.Join(" ", hset)
		
		Console.WriteLine(str)
    End Sub
End Class



' run:
'
' vb.net c# c c++ php python
'

 



answered Jul 18, 2022 by avibootz

Related questions

1 answer 248 views
2 answers 152 views
1 answer 170 views
170 views asked Oct 29, 2019 by avibootz
1 answer 148 views
2 answers 238 views
238 views asked Oct 28, 2019 by avibootz
1 answer 126 views
126 views asked Mar 9, 2023 by avibootz
1 answer 139 views
...