Class IntExtensions.IterationInRange.Enumerator
This struct is allocation free and allows to iterate through wrapped range. By example to go in range 0-10 from 7 to 3. It will return 7, 8, 9, 0, 1, 2
Inheritance
System.Object
IntExtensions.IterationInRange.Enumerator
Implements
System.Collections.Generic.IEnumerator<System.Int32>
System.Collections.IEnumerator
System.IDisposable
Namespace: Eco.Shared.Math
Assembly: Eco.Shared.dll
Syntax
public sealed class Enumerator : ValueType, IEnumerator<int>, IEnumerator, IDisposable
Properties
Current
Declaration
public int Current { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Dispose()
Declaration
public void Dispose()
MoveNext()
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.Collections.Generic.IEnumerator<>
System.Collections.IEnumerator
System.IDisposable