 | GeneratorCombineT1, T2, T3, T4, TResult Method (IGeneratorT1, IGeneratorT2, IGeneratorT3, IGeneratorT4, FuncT1, T2, T3, T4, TResult) |
Combines the specified generators by applying a result selector
function to the elements of each generator.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TResult> Combine<T1, T2, T3, T4, TResult>(
IGenerator<T1> generator1,
IGenerator<T2> generator2,
IGenerator<T3> generator3,
IGenerator<T4> generator4,
Func<T1, T2, T3, T4, TResult> resultSelector
)
Parameters
- generator1
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorT1
The first generator. - generator2
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorT2
The second generator. - generator3
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorT3
The third generator. - generator4
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorT4
The fourth generator. - resultSelector
- Type: SystemFuncT1, T2, T3, T4, TResult
The result selector function.
Type Parameters
- T1
- The type of elements of the first generator.
- T2
- The type of elements of the second generator.
- T3
- The type of elements of the third generator.
- T4
- The type of elements of the fourth generator.
- TResult
- The type of the elements of the result generator.
Return Value
Type:
IGeneratorTResultA new generator
Exceptions
See Also