我尝试将C#yield转换为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