From the above python exercise here now a C# flavored version
Code
private static IEnumerable<int> InfiniteGenerator(string input)
{
var index = 0;
var letters = input.ToCharArray();
while (true)
{
yield return letters[index % letters.Length];
index++;
}
}
static public void Main()
{
var value = 0;
foreach (var current in InfiniteGenerator("