Imports System
Imports System.Collections.Generic
Public Class Program
Public Shared Sub Main()
Dim hset As HashSet(Of String) = New HashSet(Of String) From {
"c#",
"vb.net",
"c",
"c++",
"python"
}
Dim array As String() = New String(hset.Count - 1) {}
hset.CopyTo(array)
Console.WriteLine(String.Join(", ", array))
End Sub
End Class
' run:
'
' c#, vb.net, c, c++, python
'