public void Linq66() { var numbers = Enumerable.Repeat(7, 10); foreach (var n in numbers) { Console.WriteLine(n); } } Result 7 7 7 7 7 7 7 7 7 7