现在,VS 2010 SP1中支持Async CTP,请参阅:
Iterators (C# and Visual Basic) on MSDN和
download Visual Studio Async CTP (Version 3).
原文链接:https://www.f2er.com/vb/255688.html这样的代码,作品:
Private Iterator Function SomeNumbers() As IEnumerable ' Use multiple yield statements. Yield 3 Yield 5 Yield 8 End Function