What is the equilivant syntax in vb.net for "yield return"?
- by digiguru
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;
}
}
}