[]
Generates a sequence that contains one repeated value.
public static IEnumerable<T> Repeat<T>(this T item, int times)
| Type | Name | Description |
|---|---|---|
| T | item | The value to be repeated. |
| int | times | The number of times to repeat the value in the generated sequence |
| Type | Description |
|---|---|
| IEnumerable<T> | An IEnumerable<T> that contains a repeated value. |
| Name | Description |
|---|---|
| T | The type of the value to be repeated in the result sequence. |