Click or drag to resize

GeneratorFromFuncTResult Method

Makes a new generator from a generator function.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TResult> FromFunc<TResult>(
	Func<TResult> generator
)

Parameters

generator
Type: SystemFuncTResult
The generator function that will be called to generate new elements.

Type Parameters

TResult
The type of elements to generate.

Return Value

Type: IGeneratorTResult
Exceptions
ExceptionCondition
ArgumentNullExceptiongenerator
See Also