2011-09-26 5 views
1

Je code suivant:Comment joindre Queue (Of String) en tant que chaîne?

Dim PendingFiles As New Queue(Of String) 

J'ai besoin de se joindre à chaque élément de PendingFiles par une virgule et stocker le résultat comme une chaîne. Comment l'atteindre?

Quelque chose comme ceci:

Dim Result As String 
Result = Join(PendingFiles, ",") 
'NOTE: this the way if PendingFiles is a string array. 
'  But now, it is Queue(Of String). So how do I join it? 
+0

Résultat = Join (PendingFiles.ToList(), "") – asawyer

+0

@asawyer: Votre réponse ne fonctionne pas – user774411

Répondre

Questions connexes