2011-09-26 75 views
1

我有以下代碼:如何將Queue(Of String)作爲字符串加入?

Dim PendingFiles As New Queue(Of String) 

我需要加入PendingFiles的每個元素用逗號,並將結果作爲字符串。我如何實現它?

事情是這樣的:

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

結果=加入(PendingFiles.ToList() 「」) – asawyer

+0

@asawyer:你的回答不工作 – user774411

回答

相關問題