Table of Contents

Method Cast

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Cast<TResult>(IGenerator)

Makes a generator that will generate elements by casting the elements of a source generator.

public static IGenerator<TResult> Cast<TResult>(this IGenerator generator)

Parameters

generator IGenerator

The source generator.

Returns

IGenerator<TResult>

A new generator.

Type Parameters

TResult

The type of elements of the source generator.