可能重複:
Translation of yield into VB.NET
Yield in VB.NET如何將C#關鍵字yield轉換爲VB.NET?
我嘗試轉換的C#產量VB.NET但我發現有在VB.NET 有人請沒有收益呢?
Public Function GetHalfAnHourChunks(ByVal startFrom As DateTime, ByVal until As DateTime) As IEnumerable(Of DateTime)
' While startFrom < until
' yield Return startFrom
' startFrom = startFrom.AddMinutes(30)
' End While
' End Function
有不等同於'在VB.Net yield'。檢查此帖:http://stackoverflow.com/questions/97381/yield-in-vb-net – Chandu
看看[這個](http://stackoverflow.com/questions/97381/yield-in-vb-淨)線程 – Zasz
Thx非常guyz。對不起復制該帖子。 –