Repeat

Query
public void Linq66()
{
var numbers = Enumerable.Repeat(7, 10);

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

foreach (var n in numbers)
{
Console.WriteLine(n);
}
}
Output
7
7
7
7
7
7
7
7
7
7
Related Tutorial
1. Range
2. Repeat