IGenerator Interface |
Namespace: Gamelogic.Extensions.Algorithms
[VersionAttribute(2, 0, 0)] public interface IGenerator
The IGenerator type exposes the following members.
| Name | Description | |
|---|---|---|
| Current |
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.
|
| Name | Description | |
|---|---|---|
| CloneAndRestart |
Clones the generator and returns the clone in a restarted state.
| |
| MoveNext |
Generates the next element.
|
| Name | Description | |
|---|---|---|
| CastTResult |
Makes a generator that will generate elements by casting the elements of a source
generator.
(Defined by Generator.) | |
| OfTypeTResult |
Makes a generator that will generate elements of a source generator that is
of the given type.
(Defined by Generator.) |