1

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
Community
  • 1
  • 1
Carson Lee
  • 2,673
  • 3
  • 20
  • 23

1 Answers1

0

There is no equivalent of 'yield' in VB.Net

Edit I stand somewhat corrected - see Yield in VB.NET

Community
  • 1
  • 1
Prescott
  • 7,312
  • 5
  • 49
  • 70