 | GeneratorSelectTSource, TResult Method (IGeneratorTSource, FuncTSource, TResult) |
Makes a generator which generates items that are transformed, generated from a given generator.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TResult> Select<TSource, TResult>(
this IGenerator<TSource> generator,
Func<TSource, TResult> selector
)
Parameters
- generator
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
The generator. - selector
- Type: SystemFuncTSource, TResult
The function used to transform elements of the source generator.
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