Summary
Calls the specified func according to the
specified count
- Namespace
- Faker
.Extensions - Containing Type
- EnumerableExtensions
Syntax
public static IEnumerable<T> Times<T>(this int count, Func<int, T> func)
Type Parameters
| Name | Description |
|---|---|
| T | The type of item the function returns. |
Parameters
| Name | Type | Description |
|---|---|---|
| count | int | How many times to call the function. |
| func | Func |
The function to call. |
Return Value
| Type | Description |
|---|---|
| IEnumerable |
An enumerable of the result from the called function. |