EnumerableExtensions.

Times<T>(int, Func<int, T>) Method

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<int, T> The function to call.

Return Value

Type Description
IEnumerable<T> An enumerable of the result from the called function.
GitHub