Possible Duplicates:
Translation of yield into VB.NET
Yield in VB.NET
I try to convert the C# yield to VB.NET but i found there is no yield in VB.NET anyone pls ?
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