What is the equilivant syntax in vb.net for "yield return"?

Posted by digiguru on Stack Overflow See other posts from Stack Overflow or by digiguru
Published on 2010-05-26T12:23:31Z Indexed on 2010/05/26 12:31 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

Using the c# code below, how would you write it in vb? What is it trying to say?

for (int x = 0; x < imagePerSide; x++)
{
   for (int y = 0; y < imagePerSide; y++)
   {
      int n = XYToMorton(x + xOffset, y + yOffset);
      if (n < imageCount)
      {
         yield return n;
      }
   }
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net