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
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +