C#/.NET Little Wonders: The Enumerable.Repeat() Static Method

added by BlackRabbitCoder
5/4/2012 8:48:56 AM

3 Kicks, 414 Views

The Enumerable.Repeat() method performs the simple task of creating a sequence by repeating an element a specific number of times. While this is, in of itself, a trivial need, it can also be used to drive more useful results such as repeating a generator delegate, or creating sequences out of single items.


5/3/2012 7:31:23 PM
new post