Yield In VB.NET

Posted by MagicKat on Stack Overflow See other posts from Stack Overflow or by MagicKat
Published on 2008-09-18T21:53:22Z Indexed on 2010/03/27 4:33 UTC
Read the original article Hit count: 345

Filed under:
|
|

C# has the keyword called yield. VB.NET lacks this keyword. I am curious how some of the VB programmers have gotten around the lack of this keyword. Do you implement your own iterator class? Or do you try and code to avoid the need of an iterator?

The yield keyword does force the compiler to do some coding behind the scenes. http://blogs.msdn.com/oldnewthing/archive/2008/08/12/8849519.aspx is a good example of that.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about subjective