Table of Contents

Method Next

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

Next<TSource>(IGenerator<TSource>)

Returns the next element of the specified generator.

public static TSource Next<TSource>(this IGenerator<TSource> generator)

Parameters

generator IGenerator<TSource>

The generator.

Returns

TSource

TSource.

Type Parameters

TSource

The type of the source generator.

Exceptions

ArgumentNullException

generator

Next<TSource>(IGenerator<TSource>, int)

Returns a list of the next n items from the generator.

public static IEnumerable<TSource> Next<TSource>(this IGenerator<TSource> generator, int count)

Parameters

generator IGenerator<TSource>

The generator.

count int

How many items to return.

Returns

IEnumerable<TSource>

IEnumerable<TResult>.

Type Parameters

TSource

The type of the source.

Exceptions

ArgumentNullException

generator

ArgumentOutOfRangeException

count;Argument must be positive.