Click or drag to resize

GeneratorCombineTSource, TResult Method (IEnumerableIGeneratorTSource, FuncIListTSource, TResult)

Makes a generator that combines the elements of specified generators.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TResult> Combine<TSource, TResult>(
	IEnumerable<IGenerator<TSource>> generators,
	Func<IList<TSource>, TResult> resultSelector
)

Parameters

generators
Type: System.Collections.GenericIEnumerableIGeneratorTSource
The generators.
resultSelector
Type: SystemFuncIListTSource, TResult
The result selector.

Type Parameters

TSource
The type of elements of the source generators.
TResult
The type of elements this generator will generate.

Return Value

Type: IGeneratorTResult
A new generator.
Exceptions
ExceptionCondition
ArgumentNullExceptiongenerators
ArgumentExceptionCannot contain null elements;generators
See Also