Click or drag to resize

GeneratorInterleaveTSource Method (IGeneratorTSource, IGeneratorTSource)

Makes a generator that interleaves the elements of the specified generators.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TSource> Interleave<TSource>(
	IGenerator<TSource> generator,
	params IGenerator<TSource>[] generators
)

Parameters

generator
Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
The first generator.
generators
Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
The other generators.

Type Parameters

TSource
The type of elements to generate.

Return Value

Type: IGeneratorTSource
A new generator.
Exceptions
ExceptionCondition
ArgumentNullExceptiongenerator is $(null)
ArgumentExceptionAny of generators is null.
See Also