Click or drag to resize

IGenerator Interface

A generator can produce a infinite sequence of objects.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(2, 0, 0)]
public interface IGenerator

The IGenerator type exposes the following members.

Properties
  NameDescription
Public propertyCurrent
Gets the element last generated by this generator. It is always (in theory) valid to query this property. When called right after the generator is constructed (before calls to move next), it gives the first element of this generator. In practice, it is possible for a generator to overflow.
Top
Methods
  NameDescription
Public methodCloneAndRestart
Clones the generator and returns the clone in a restarted state.
Public methodMoveNext
Generates the next element.
Top
Extension Methods
See Also