Method MoveNext
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
MoveNext<TSource>(IGenerator<TSource>, int)
Moves the generator by a specified amount forward.
public static void MoveNext<TSource>(this IGenerator<TSource> generator, int count)
Parameters
generator
IGenerator<TSource>The generator.
count
intThe number of times to move the generator forward.
Type Parameters
TSource
The type of the t source.
Exceptions
- ArgumentNullException
generator
- ArgumentOutOfRangeException
count;Argument cannot be smaller than 0.