Table of Contents

Class Generator.AbstractGenerator<TResult>

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Assembly-CSharp.dll

This class provides a convenient base class to base an implementation of IGenerator on.

public abstract class Generator.AbstractGenerator<TResult> : IGenerator<TResult>, IGenerator

Type Parameters

TResult

The type of elements this generator generates.

Inheritance
Generator.AbstractGenerator<TResult>
Implements
IGenerator<TResult>
Inherited Members
Extension Methods

Properties

Current

Gets the element last generated by this generator.

public abstract TResult Current { get; }

Property Value

TResult

Methods

CloneAndRestart()

Clones the generator and returns the clone in a restarted state.

public abstract IGenerator<TResult> CloneAndRestart()

Returns

IGenerator<TResult>

MoveNext()

Generates the next element.

public abstract void MoveNext()

See Also

IGenerator<TResult>