Method OfType
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
OfType<TResult>(IGenerator)
Makes a generator that will generate elements of a source generator that is of the given type.
public static IGenerator<TResult> OfType<TResult>(this IGenerator generator) where TResult : class
Parameters
generator
IGeneratorThe source generator.
Returns
- IGenerator<TResult>
A new generator.
Type Parameters
TResult
The type of the elements the generator must generate.