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