 | GeneratorSelectManyTSource, TResult Method |
For each item in the source generator, a list of items is generated, but the items are generated
one by one (and not as a list of items).
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TResult> SelectMany<TSource, TResult>(
this IGenerator<TSource> generator,
Func<TSource, IEnumerable<TResult>> selector
)
Parameters
- generator
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
The generator. - selector
- Type: SystemFuncTSource, IEnumerableTResult
The function that transform elements of the source generator to a list
of items.
Type Parameters
- TSource
- The type of the source generator.
- TResult
- The type of the result generator.
Return Value
Type:
IGeneratorTResultIGenerator<TResult>.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGeneratorTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also