I understand VB.NET does not have yield keyword so how would you convert yield of enum. in the following code?
private static IEnumerable<int> Combinations(int start, int level, int[] arr)
{
for (int i = start; i < arr.Length; i++)
if (level == 1)
yield return arr[i];
else
foreach (int combination in Combinations(i + 1, level - 1, arr))
yield return arr[i] * combination;
}
Edit: This is for .NET 2.0
Any idea?
Thanks,