Enumerable.repeat Method
Generates a sequence that contains one repeated value.
This method is static.
Parameters
- element
-
Type: Object
The value to be repeated.
- count
-
Type: Number (Integer)
The number of times to repeat the value in the generated sequence.
Return Value
Type: IEnumerable
An enumerable that contains a repeated value.